Searched refs:eth (Results 1 - 25 of 54) sorted by relevance

123

/freebsd-11-stable/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_ah.c89 rdma_get_mcast_mac(&in6, ah->av.eth.mac);
91 memcpy(ah->av.eth.mac, ah_attr->dmac, ETH_ALEN);
97 eth_zero_addr(ah->av.eth.s_mac);
100 memcpy(ah->av.eth.s_mac, IF_LLADDR(gid_attr.ndev), ETH_ALEN);
105 ah->av.eth.port_pd = cpu_to_be32(to_mpd(pd)->pdn | (ah_attr->port_num << 24));
109 ah->av.eth.gid_index = ret;
110 ah->av.eth.vlan = cpu_to_be16(vlan_tag);
111 ah->av.eth.hop_limit = ah_attr->grh.hop_limit;
113 ah->av.eth.stat_rate = ah_attr->static_rate + MLX4_STAT_RATE_OFFSET;
114 while (ah->av.eth
[all...]
H A Dmlx4_ib_main.c1399 if (FIELDS_NOT_SUPPORTED(ib_spec->eth.mask, LAST_ETH_FIELD))
1403 memcpy(mlx4_spec->eth.dst_mac, ib_spec->eth.val.dst_mac,
1405 memcpy(mlx4_spec->eth.dst_mac_msk, ib_spec->eth.mask.dst_mac,
1407 mlx4_spec->eth.vlan_tag = ib_spec->eth.val.vlan_tag;
1408 mlx4_spec->eth.vlan_tag_msk = ib_spec->eth.mask.vlan_tag;
1678 err = mlx4_tunnel_steer_add(to_mdev(qp->device)->dev, ib_spec->eth
[all...]
H A Dmlx4_ib_qp.c2491 if (ah->av.eth.vlan != cpu_to_be16(0xffff)) {
2492 vlan = be16_to_cpu(ah->av.eth.vlan) & 0x0fff;
2545 sqp->ud_header.ip4.ttl = ah->av.eth.hop_limit;
2595 ether_addr_copy(sqp->ud_header.eth.smac_h, ah->av.eth.s_mac);
2596 memcpy(sqp->ud_header.eth.dmac_h, ah->av.eth.mac, 6);
2597 memcpy(&ctrl->srcrb_flags16[0], ah->av.eth.mac, 2);
2598 memcpy(&ctrl->imm, ah->av.eth.mac + 2, 4);
2602 if (!memcmp(sqp->ud_header.eth
[all...]
/freebsd-11-stable/contrib/wpa/src/l2_packet/
H A Dl2_packet_freebsd.c60 struct l2_ethhdr *eth = os_malloc(sizeof(*eth) + len); local
61 if (eth == NULL)
63 os_memcpy(eth->h_dest, dst_addr, ETH_ALEN);
64 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN);
65 eth->h_proto = htons(proto);
66 os_memcpy(eth + 1, buf, len);
67 ret = pcap_inject(l2->pcap, (u8 *) eth, len + sizeof(*eth));
68 os_free(eth);
[all...]
H A Dl2_packet_ndis.c96 struct l2_ethhdr *eth; local
116 size_t mlen = sizeof(*eth) + len;
117 eth = os_malloc(mlen);
118 if (eth == NULL)
121 os_memcpy(eth->h_dest, dst_addr, ETH_ALEN);
122 os_memcpy(eth->h_source, l2->own_addr, ETH_ALEN);
123 eth->h_proto = htons(proto);
124 os_memcpy(eth + 1, buf, len);
125 res = WriteFile(driver_ndis_get_ndisuio_handle(), eth, mlen,
127 os_free(eth);
[all...]
/freebsd-11-stable/sys/dev/mlx5/mlx5_en/
H A Dmlx5_en_tx.c311 wqe->eth.cs_flags |= MLX5_ETH_WQE_L3_CSUM;
314 wqe->eth.cs_flags |= MLX5_ETH_WQE_L4_CSUM;
316 if (wqe->eth.cs_flags == 0) {
324 wqe->eth.mss = cpu_to_be16(mss);
359 wqe->eth.vlan_cmd = htons(0x8000); /* bit 0 CVLAN */
360 wqe->eth.vlan_hdr = htons(mb->m_pkthdr.ether_vtag);
380 wqe->eth.inline_hdr_start;
404 wqe->eth.inline_hdr_sz = cpu_to_be16(ihs);
414 m_copydata(mb, 0, ihs, wqe->eth.inline_hdr_start);
416 wqe->eth
[all...]
/freebsd-11-stable/sys/dev/qlnx/qlnxe/
H A Decore_l2.c1940 p_common->rx_64_byte_packets += port_stats.eth.r64;
1941 p_common->rx_65_to_127_byte_packets += port_stats.eth.r127;
1942 p_common->rx_128_to_255_byte_packets += port_stats.eth.r255;
1943 p_common->rx_256_to_511_byte_packets += port_stats.eth.r511;
1944 p_common->rx_512_to_1023_byte_packets += port_stats.eth.r1023;
1945 p_common->rx_1024_to_1518_byte_packets += port_stats.eth.r1518;
1946 p_common->rx_crc_errors += port_stats.eth.rfcs;
1947 p_common->rx_mac_crtl_frames += port_stats.eth.rxcf;
1948 p_common->rx_pause_frames += port_stats.eth.rxpf;
1949 p_common->rx_pfc_frames += port_stats.eth
[all...]
H A Decore_dcbx_api.h93 u8 eth; member in struct:ecore_dcbx_app_prio
/freebsd-11-stable/sys/dev/mlx4/mlx4_core/
H A Dmlx4_mcg.c849 memcpy(rule_hw->eth.dst_mac, spec->eth.dst_mac, ETH_ALEN);
850 memcpy(rule_hw->eth.dst_mac_msk, spec->eth.dst_mac_msk,
852 memcpy(rule_hw->eth.src_mac, spec->eth.src_mac, ETH_ALEN);
853 memcpy(rule_hw->eth.src_mac_msk, spec->eth.src_mac_msk,
855 if (spec->eth.ether_type_enable) {
856 rule_hw->eth
[all...]
/freebsd-11-stable/sys/ofed/drivers/infiniband/core/
H A Dib_ud_header.c92 { STRUCT_FIELD(eth, dmac_h),
96 { STRUCT_FIELD(eth, dmac_l),
100 { STRUCT_FIELD(eth, smac_h),
104 { STRUCT_FIELD(eth, smac_l),
108 { STRUCT_FIELD(eth, type),
362 header->eth.type = cpu_to_be16(ETH_P_8021Q);
434 &header->eth, (char *)buf + len);
H A Duverbs.h234 struct ib_uverbs_flow_spec_eth eth; member in union:ib_uverbs_flow_spec::__anon8268
/freebsd-11-stable/contrib/ipfilter/ipsend/
H A Dip.c158 ether_header_t eth; local
200 bcopy((char *)eh, (char *)&eth, sizeof(eth));
224 bcopy((char *)&eth, ipbuf, sizeof(eth));
/freebsd-11-stable/contrib/libpcap/msdos/
H A Dpktdrvr.h131 extern BOOL PktTransmit (const void *eth, int len);
H A Dpktdrvr.c444 PUBLIC BOOL PktTransmit (const void *eth, int len) argument
453 dosmemput (eth, len, realBase+pktTxBuf);
458 memcpy ((void*)(realBase+pktTxBuf), eth, len);
463 memcpy (&pktTxBuf, eth, len);
468 reg.r_ds = FP_SEG (eth);
469 reg.r_si = FP_OFF (eth);
/freebsd-11-stable/sys/contrib/octeon-sdk/
H A Dcvmx-helper-board.c111 int pip, iface, eth; local
144 eth = fdt_subnode_offset(fdt_addr, iface, name_buffer);
145 if (eth < 0)
151 return eth;
207 int aliases, eth, phy, phy_parent, phandle, ret; local
230 eth = __mix_eth_node(fdt_addr, aliases, interface_index) ;
234 eth = __pip_eth_node(fdt_addr, aliases, ipd_port);
236 if (eth < 0 )
242 phy_handle = (uint32_t *) fdt_getprop(fdt_addr, eth, "phy-handle", NULL);
/freebsd-11-stable/sys/net/
H A Dif_gif.c338 struct etherip_header *eth; local
416 eth = mtod(m, struct etherip_header *);
417 eth->eip_resvh = 0;
418 eth->eip_ver = ETHERIP_VERSION;
419 eth->eip_resvl = 0;
/freebsd-11-stable/contrib/wpa/hostapd/
H A Dctrl_iface.c1829 const struct ether_header *eth; local
1835 if (len < sizeof(*eth) + sizeof(ip) || len > HWSIM_PACKETLEN) {
1842 eth = (const struct ether_header *) buf;
1843 os_memcpy(&ip, eth + 1, sizeof(ip));
1844 pos = &buf[sizeof(*eth) + sizeof(ip)];
1866 MAC2STR(eth->ether_dhost), MAC2STR(eth->ether_shost), extra);
1916 struct ether_header *eth; local
1952 eth = (struct ether_header *) &buf[2];
1953 os_memcpy(eth
1986 struct ether_header *eth; local
[all...]
/freebsd-11-stable/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_main.c1699 if (FIELDS_NOT_SUPPORTED(ib_spec->eth.mask, LAST_ETH_FIELD))
1704 ib_spec->eth.mask.dst_mac);
1707 ib_spec->eth.val.dst_mac);
1711 ib_spec->eth.mask.src_mac);
1714 ib_spec->eth.val.src_mac);
1716 if (ib_spec->eth.mask.vlan_tag) {
1723 first_vid, ntohs(ib_spec->eth.mask.vlan_tag));
1725 first_vid, ntohs(ib_spec->eth.val.vlan_tag));
1729 ntohs(ib_spec->eth.mask.vlan_tag) >> 12);
1732 ntohs(ib_spec->eth
[all...]
/freebsd-11-stable/sys/ofed/include/rdma/
H A Dib_pack.h264 struct ib_unpacked_eth eth; member in struct:ib_ud_header
/freebsd-11-stable/sys/dev/ixl/
H A Dixl_pf_main.c2818 struct i40e_eth_stats *eth_stats = &stats->eth;
3738 &osd->eth.rx_bytes, &nsd->eth.rx_bytes);
3742 &osd->eth.tx_bytes, &nsd->eth.tx_bytes);
3745 &osd->eth.rx_discards,
3746 &nsd->eth.rx_discards);
3750 &osd->eth.rx_unicast,
3751 &nsd->eth.rx_unicast);
3755 &osd->eth
[all...]
/freebsd-11-stable/contrib/wpa/src/drivers/
H A Ddriver_atheros.c1664 struct l2_ethhdr *eth; local
1684 eth = (struct l2_ethhdr *) bp;
1685 os_memcpy(eth->h_dest, addr, ETH_ALEN);
1686 os_memcpy(eth->h_source, own_addr, ETH_ALEN);
1687 eth->h_proto = host_to_be16(ETH_P_EAPOL);
1688 os_memcpy(eth + 1, data, data_len);
/freebsd-11-stable/sys/dev/mlx4/
H A Ddevice.h116 * -device managed - High level API for ib and eth flow steering. FW is
118 * - B0 steering mode - Common low level API for ib and (if supported) eth.
119 * - A0 steering mode - Limited low level API for eth. In case of IB,
804 struct mlx4_eth_av eth; member in union:mlx4_ext_av
1237 struct mlx4_spec_eth eth; member in union:mlx4_spec_list::__anon4776
1344 struct mlx4_net_trans_rule_hw_eth eth; member in union:_rule_hw::__anon4777
/freebsd-11-stable/contrib/apr/encoding/
H A Dapr_escape.c675 "amp\046ETH\320eth\360", /* 3 */
/freebsd-11-stable/contrib/wpa/wpa_supplicant/
H A Dctrl_iface.c3136 struct ether_header *eth; local
3161 eth = (struct ether_header *) buf;
3162 os_memcpy(eth->ether_dhost, addr, ETH_ALEN);
3163 os_memcpy(eth->ether_shost, wpa_s->own_addr, ETH_ALEN);
3164 eth->ether_type = htons(ETH_P_802_3);
8902 const struct ether_header *eth; local
8908 if (len < sizeof(*eth) + sizeof(ip) || len > HWSIM_PACKETLEN) {
8915 eth = (const struct ether_header *) buf;
8916 os_memcpy(&ip, eth + 1, sizeof(ip));
8917 pos = &buf[sizeof(*eth)
8987 struct ether_header *eth; local
9057 struct ether_header *eth; local
[all...]
H A Ddriver_i.h92 const u8 *eth, size_t len)
96 eth, len);
90 wpa_drv_mesh_link_probe(struct wpa_supplicant *wpa_s, const u8 *addr, const u8 *eth, size_t len) argument

Completed in 318 milliseconds

123