Home
last modified time | relevance | path

Searched refs:eth (Results 1 – 156 of 156) sorted by relevance

/linux-4.1.27/net/ethernet/
Deth.c82 struct ethhdr *eth = (struct ethhdr *)skb_push(skb, ETH_HLEN); in eth_header() local
85 eth->h_proto = htons(type); in eth_header()
87 eth->h_proto = htons(len); in eth_header()
95 memcpy(eth->h_source, saddr, ETH_ALEN); in eth_header()
98 memcpy(eth->h_dest, daddr, ETH_ALEN); in eth_header()
107 eth_zero_addr(eth->h_dest); in eth_header()
125 const struct ethhdr *eth = (const struct ethhdr *)data; in eth_get_headlen() local
129 if (len < sizeof(*eth)) in eth_get_headlen()
134 eth->h_proto, sizeof(*eth), len)) in eth_get_headlen()
135 return max_t(u32, keys.thoff, sizeof(*eth)); in eth_get_headlen()
[all …]
DMakefile5 obj-y += eth.o
/linux-4.1.27/drivers/infiniband/hw/mlx4/
Dah.c84 rdma_get_mcast_mac(&in6, ah->av.eth.mac); in create_iboe_ah()
86 memcpy(ah->av.eth.mac, ah_attr->dmac, ETH_ALEN); in create_iboe_ah()
91 ah->av.eth.port_pd = cpu_to_be32(to_mpd(pd)->pdn | (ah_attr->port_num << 24)); in create_iboe_ah()
92 ah->av.eth.gid_index = ah_attr->grh.sgid_index; in create_iboe_ah()
93 ah->av.eth.vlan = cpu_to_be16(vlan_tag); in create_iboe_ah()
95 ah->av.eth.stat_rate = ah_attr->static_rate + MLX4_STAT_RATE_OFFSET; in create_iboe_ah()
96 while (ah->av.eth.stat_rate > IB_RATE_2_5_GBPS + MLX4_STAT_RATE_OFFSET && in create_iboe_ah()
97 !(1 << ah->av.eth.stat_rate & dev->caps.stat_rate_support)) in create_iboe_ah()
98 --ah->av.eth.stat_rate; in create_iboe_ah()
107 memcpy(ah->av.eth.dgid, ah_attr->grh.dgid.raw, 16); in create_iboe_ah()
[all …]
Dqp.c2200 if (ah->av.eth.vlan != cpu_to_be16(0xffff)) { in build_mlx_header()
2201 vlan = be16_to_cpu(ah->av.eth.vlan) & 0x0fff; in build_mlx_header()
2276 memcpy(sqp->ud_header.eth.dmac_h, ah->av.eth.mac, 6); in build_mlx_header()
2278 memcpy(&ctrl->srcrb_flags16[0], ah->av.eth.mac, 2); in build_mlx_header()
2279 memcpy(&ctrl->imm, ah->av.eth.mac + 2, 4); in build_mlx_header()
2287 memcpy(sqp->ud_header.eth.smac_h, smac, ETH_ALEN); in build_mlx_header()
2290 memcpy(sqp->ud_header.eth.smac_h, ah->av.eth.s_mac, ETH_ALEN); in build_mlx_header()
2293 if (!memcmp(sqp->ud_header.eth.smac_h, sqp->ud_header.eth.dmac_h, 6)) in build_mlx_header()
2296 sqp->ud_header.eth.type = cpu_to_be16(MLX4_IB_IBOE_ETHERTYPE); in build_mlx_header()
2486 dseg->vlan = to_mah(wr->wr.ud.ah)->av.eth.vlan; in set_datagram_seg()
[all …]
Dmain.c869 memcpy(mlx4_spec->eth.dst_mac, ib_spec->eth.val.dst_mac, in parse_flow_attr()
871 memcpy(mlx4_spec->eth.dst_mac_msk, ib_spec->eth.mask.dst_mac, in parse_flow_attr()
873 mlx4_spec->eth.vlan_tag = ib_spec->eth.val.vlan_tag; in parse_flow_attr()
874 mlx4_spec->eth.vlan_tag_msk = ib_spec->eth.mask.vlan_tag; in parse_flow_attr()
1135 err = mlx4_tunnel_steer_add(to_mdev(qp->device)->dev, ib_spec->eth.val.dst_mac, in mlx4_ib_tunnel_steer_add()
Dmad.c1255 memcpy(to_mah(ah)->av.eth.s_mac, s_mac, 6); in mlx4_ib_send_to_wire()
/linux-4.1.27/drivers/net/ethernet/sgi/
Dmeth.c111 mace->eth.mac_addr = macaddr; in load_eaddr()
118 while ((___rval = mace->eth.phy_data) & MDIO_BUSY) { \
126 mace->eth.phy_regs = (priv->phy_addr << 5) | (phyreg & 0x1f); in mdio_read()
128 mace->eth.phy_trans_go = 1; in mdio_read()
197 mace->eth.mac_ctrl = priv->mac_ctrl; in meth_check_link()
206 mace->eth.mac_ctrl = priv->mac_ctrl; in meth_check_link()
220 mace->eth.tx_ring_base = priv->tx_ring_dma; in meth_init_tx_ring()
241 mace->eth.rx_fifo = priv->rx_ring_dmas[i]; in meth_init_rx_ring()
279 mace->eth.mac_ctrl = SGI_MAC_RESET; in meth_reset()
281 mace->eth.mac_ctrl = 0; in meth_reset()
[all …]
DMakefile6 obj-$(CONFIG_SGI_IOC3_ETH) += ioc3-eth.o
/linux-4.1.27/drivers/net/wireless/mwifiex/
Dsta_rx.c39 struct ethhdr *eth; in mwifiex_discard_gratuitous_arp() local
43 eth = (struct ethhdr *)skb->data; in mwifiex_discard_gratuitous_arp()
44 switch (ntohs(eth->h_proto)) { in mwifiex_discard_gratuitous_arp()
90 struct ethhdr *eth; in mwifiex_process_rx_packet() local
116 eth = (struct ethhdr *) in mwifiex_process_rx_packet()
124 memcpy(eth->h_source, rx_pkt_hdr->eth803_hdr.h_source, in mwifiex_process_rx_packet()
125 sizeof(eth->h_source)); in mwifiex_process_rx_packet()
126 memcpy(eth->h_dest, rx_pkt_hdr->eth803_hdr.h_dest, in mwifiex_process_rx_packet()
127 sizeof(eth->h_dest)); in mwifiex_process_rx_packet()
131 hdr_chop = (u8 *) eth - (u8 *) local_rx_pd; in mwifiex_process_rx_packet()
/linux-4.1.27/drivers/infiniband/hw/ocrdma/
Docrdma_ah.c48 struct ocrdma_eth_vlan eth; in set_av_attr() local
52 memset(&eth, 0, sizeof(eth)); in set_av_attr()
66 eth.eth_type = cpu_to_be16(0x8100); in set_av_attr()
67 eth.roce_eth_type = cpu_to_be16(OCRDMA_ROCE_ETH_TYPE); in set_av_attr()
69 eth.vlan_tag = cpu_to_be16(vlan_tag); in set_av_attr()
73 eth.eth_type = cpu_to_be16(OCRDMA_ROCE_ETH_TYPE); in set_av_attr()
77 memcpy(&eth.smac[0], &dev->nic_info.mac_addr[0], ETH_ALEN); in set_av_attr()
78 status = ocrdma_resolve_dmac(dev, attr, &eth.dmac[0]); in set_av_attr()
92 memcpy(&ah->av->eth_hdr, &eth, eth_sz); in set_av_attr()
/linux-4.1.27/Documentation/devicetree/bindings/net/
Dmarvell-orion-net.txt25 - compatible: shall be one of "marvell,orion-eth", "marvell,kirkwood-eth".
35 - compatible: shall be one of "marvell,orion-eth-port",
36 "marvell,kirkwood-eth-port".
67 eth: ethernet-controller@72000 {
68 compatible = "marvell,orion-eth";
76 compatible = "marvell,orion-eth-port";
Dlpc-eth.txt4 - compatible: Should be "nxp,lpc-eth"
16 compatible = "nxp,lpc-eth";
Dmarvell-pxa168.txt4 - compatible: should be "marvell,pxa168-eth".
25 compatible = "marvell,pxa168-eth";
/linux-4.1.27/drivers/media/dvb-core/
Ddvb_net.c140 struct ethhdr *eth; in dvb_net_eth_type_trans() local
145 eth = eth_hdr(skb); in dvb_net_eth_type_trans()
147 if (*eth->h_dest & 1) { in dvb_net_eth_type_trans()
148 if(ether_addr_equal(eth->h_dest,dev->broadcast)) in dvb_net_eth_type_trans()
154 if (ntohs(eth->h_proto) >= ETH_P_802_3_MIN) in dvb_net_eth_type_trans()
155 return eth->h_proto; in dvb_net_eth_type_trans()
782 u8 *eth; local
835 eth = (u8 *) skb_put(skb, pkt_len - 12 - 4 + 14 - snap);
836 memcpy(eth + 14, pkt + 12 + snap, pkt_len - 12 - 4 - snap);
839 eth[0]=pkt[0x0b];
[all …]
/linux-4.1.27/net/openvswitch/
Dflow.c314 key->eth.tci = qp->tci | htons(VLAN_TAG_PRESENT); in parse_vlan()
457 struct ethhdr *eth; in key_extract() local
467 eth = eth_hdr(skb); in key_extract()
468 ether_addr_copy(key->eth.src, eth->h_source); in key_extract()
469 ether_addr_copy(key->eth.dst, eth->h_dest); in key_extract()
476 key->eth.tci = 0; in key_extract()
478 key->eth.tci = htons(skb->vlan_tci); in key_extract()
479 else if (eth->h_proto == htons(ETH_P_8021Q)) in key_extract()
483 key->eth.type = parse_ethertype(skb); in key_extract()
484 if (unlikely(key->eth.type == htons(0))) in key_extract()
[all …]
Dflow_netlink.c148 if (match->key->eth.type == htons(ETH_P_ARP) in match_validate()
149 || match->key->eth.type == htons(ETH_P_RARP)) { in match_validate()
151 if (match->mask && (match->mask->key.eth.type == htons(0xffff))) in match_validate()
155 if (eth_p_mpls(match->key->eth.type)) { in match_validate()
157 if (match->mask && (match->mask->key.eth.type == htons(0xffff))) in match_validate()
161 if (match->key->eth.type == htons(ETH_P_IP)) { in match_validate()
163 if (match->mask && (match->mask->key.eth.type == htons(0xffff))) in match_validate()
196 if (match->key->eth.type == htons(ETH_P_IPV6)) { in match_validate()
198 if (match->mask && (match->mask->key.eth.type == htons(0xffff))) in match_validate()
788 SW_FLOW_KEY_MEMCPY(match, eth.src, in ovs_key_from_nlattrs()
[all …]
Dactions.c114 key->eth.type = htons(0); in invalidate_flow_key()
119 return !!key->eth.type; in is_flow_key_valid()
225 key->eth.tci = 0; in pop_vlan()
235 key->eth.tci = vlan->vlan_tci; in push_vlan()
271 ether_addr_copy(flow_key->eth.src, eth_hdr(skb)->h_source); in set_eth_addr()
272 ether_addr_copy(flow_key->eth.dst, eth_hdr(skb)->h_dest); in set_eth_addr()
Dflow.h138 } eth; member
Ddatapath.c519 struct ethhdr *eth; in ovs_packet_cmd_execute() local
540 eth = eth_hdr(packet); in ovs_packet_cmd_execute()
545 if (ntohs(eth->h_proto) >= ETH_P_802_3_MIN) in ovs_packet_cmd_execute()
546 packet->protocol = eth->h_proto; in ovs_packet_cmd_execute()
/linux-4.1.27/drivers/staging/gdm724x/
Dgdm_lte.c105 struct ethhdr eth; in gdm_lte_emulate_arp() local
127 memcpy(&eth, skb_in->data, sizeof(struct ethhdr)); in gdm_lte_emulate_arp()
128 mac_header_data = &eth; in gdm_lte_emulate_arp()
225 struct ethhdr eth; in gdm_lte_emulate_ndp() local
254 memcpy(&eth, skb_in->data, sizeof(struct ethhdr)); in gdm_lte_emulate_ndp()
255 if (ntohs(eth.h_proto) != ETH_P_IPV6) in gdm_lte_emulate_ndp()
257 mac_header_data = &eth; in gdm_lte_emulate_ndp()
350 struct ethhdr *eth; in gdm_lte_tx_nic_type() local
362 eth = (struct ethhdr *)skb->data; in gdm_lte_tx_nic_type()
363 if (ntohs(eth->h_proto) == ETH_P_8021Q) { in gdm_lte_tx_nic_type()
[all …]
/linux-4.1.27/drivers/net/ipvlan/
Dipvlan_core.c195 struct ethhdr *eth = eth_hdr(skb); in ipvlan_multicast_frame() local
210 mac_hash = ipvlan_mac_hash(eth->h_dest); in ipvlan_multicast_frame()
220 if (ether_addr_equal(eth->h_dest, ipvlan->phy_dev->broadcast)) in ipvlan_multicast_frame()
242 if (ether_addr_equal(eth->h_dest, port->dev->broadcast)) in ipvlan_multicast_frame()
472 struct ethhdr *eth = eth_hdr(skb); in ipvlan_xmit_mode_l2() local
477 if (ether_addr_equal(eth->h_dest, eth->h_source)) { in ipvlan_xmit_mode_l2()
495 } else if (is_multicast_ether_addr(eth->h_dest)) { in ipvlan_xmit_mode_l2()
535 struct ethhdr *eth = eth_hdr(skb); in ipvlan_external_frame() local
540 if (ether_addr_equal(eth->h_source, skb->dev->dev_addr)) { in ipvlan_external_frame()
578 struct ethhdr *eth = eth_hdr(skb); in ipvlan_handle_mode_l2() local
[all …]
/linux-4.1.27/drivers/infiniband/core/
Dud_header.c86 { STRUCT_FIELD(eth, dmac_h),
90 { STRUCT_FIELD(eth, dmac_l),
94 { STRUCT_FIELD(eth, smac_h),
98 { STRUCT_FIELD(eth, smac_l),
102 { STRUCT_FIELD(eth, type),
253 header->eth.type = cpu_to_be16(ETH_P_8021Q); in ib_ud_header_init()
301 &header->eth, buf + len); in ib_ud_header_pack()
Duverbs.h208 struct ib_uverbs_flow_spec_eth eth; member
Duverbs_cmd.c2751 ib_spec->eth.size = sizeof(struct ib_flow_spec_eth); in kern_spec_to_ib_spec()
2752 if (ib_spec->eth.size != kern_spec->eth.size) in kern_spec_to_ib_spec()
2754 memcpy(&ib_spec->eth.val, &kern_spec->eth.val, in kern_spec_to_ib_spec()
2756 memcpy(&ib_spec->eth.mask, &kern_spec->eth.mask, in kern_spec_to_ib_spec()
/linux-4.1.27/arch/mips/cavium-octeon/
Docteon-platform.c444 static void __init octeon_fdt_set_phy(int eth, int phy_addr) in octeon_fdt_set_phy() argument
456 phy_handle = fdt_getprop(initial_boot_params, eth, "phy-handle", NULL); in octeon_fdt_set_phy()
463 alt_phy_handle = fdt_getprop(initial_boot_params, eth, "cavium,alt-phy-handle", NULL); in octeon_fdt_set_phy()
473 fdt_nop_property(initial_boot_params, eth, "phy-handle"); in octeon_fdt_set_phy()
475 fdt_nop_property(initial_boot_params, eth, "cavium,alt-phy-handle"); in octeon_fdt_set_phy()
489 phy_prop = fdt_get_property(initial_boot_params, eth, "phy-handle", NULL); in octeon_fdt_set_phy()
492 fdt_nop_property(initial_boot_params, eth, "phy-handle"); in octeon_fdt_set_phy()
493 alt_prop = fdt_get_property_w(initial_boot_params, eth, "cavium,alt-phy-handle", NULL); in octeon_fdt_set_phy()
566 int eth; in octeon_fdt_pip_port() local
571 eth = fdt_subnode_offset(initial_boot_params, iface, name_buffer); in octeon_fdt_pip_port()
[all …]
/linux-4.1.27/arch/um/drivers/
Dnet_kern.c570 static int check_transport(struct transport *transport, char *eth, int n, in check_transport() argument
576 if (strncmp(eth, transport->name, len)) in check_transport()
579 eth += len; in check_transport()
580 if (*eth == ',') in check_transport()
581 eth++; in check_transport()
582 else if (*eth != '\0') in check_transport()
589 if (!transport->setup(eth, mac_out, *init_out)) { in check_transport()
599 struct eth_init *eth; in register_transport() local
610 eth = list_entry(ele, struct eth_init, list); in register_transport()
611 match = check_transport(new, eth->init, eth->index, &init, in register_transport()
[all …]
/linux-4.1.27/arch/xtensa/platforms/xtfpga/
Dsetup.c139 struct device_node *eth = NULL; in machine_setup() local
144 if ((eth = of_find_compatible_node(eth, NULL, "opencores,ethoc"))) in machine_setup()
145 update_local_mac(eth); in machine_setup()
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
Dmcg.c846 memcpy(rule_hw->eth.dst_mac, spec->eth.dst_mac, ETH_ALEN); in parse_trans_rule()
847 memcpy(rule_hw->eth.dst_mac_msk, spec->eth.dst_mac_msk, in parse_trans_rule()
849 memcpy(rule_hw->eth.src_mac, spec->eth.src_mac, ETH_ALEN); in parse_trans_rule()
850 memcpy(rule_hw->eth.src_mac_msk, spec->eth.src_mac_msk, in parse_trans_rule()
852 if (spec->eth.ether_type_enable) { in parse_trans_rule()
853 rule_hw->eth.ether_type_enable = 1; in parse_trans_rule()
854 rule_hw->eth.ether_type = spec->eth.ether_type; in parse_trans_rule()
856 rule_hw->eth.vlan_tag = spec->eth.vlan_id; in parse_trans_rule()
857 rule_hw->eth.vlan_tag_msk = spec->eth.vlan_id_msk; in parse_trans_rule()
916 "dmac = %pM ", &cur->eth.dst_mac); in mlx4_err_rule()
[all …]
Den_ethtool.c1291 memcpy(spec_l2->eth.dst_mac_msk, &mac_msk, ETH_ALEN); in mlx4_en_ethtool_add_mac_rule()
1292 memcpy(spec_l2->eth.dst_mac, mac, ETH_ALEN); in mlx4_en_ethtool_add_mac_rule()
1296 spec_l2->eth.vlan_id = cmd->fs.h_ext.vlan_tci; in mlx4_en_ethtool_add_mac_rule()
1297 spec_l2->eth.vlan_id_msk = cpu_to_be16(VLAN_VID_MASK); in mlx4_en_ethtool_add_mac_rule()
1457 spec_l2->eth.ether_type = eth_spec->h_proto; in mlx4_en_ethtool_to_net_trans_rule()
1459 spec_l2->eth.ether_type_enable = 1; in mlx4_en_ethtool_to_net_trans_rule()
Den_netdev.c190 memcpy(spec_eth.eth.dst_mac, priv->dev->dev_addr, ETH_ALEN); in mlx4_en_filter_work()
191 memcpy(spec_eth.eth.dst_mac_msk, &mac_mask, ETH_ALEN); in mlx4_en_filter_work()
529 memcpy(spec_eth.eth.dst_mac, mac, ETH_ALEN); in mlx4_en_uc_steer_add()
530 memcpy(spec_eth.eth.dst_mac_msk, &mac_mask, ETH_ALEN); in mlx4_en_uc_steer_add()
Dresource_tracker.c3954 if (!is_multicast_ether_addr(eth_header->eth.dst_mac) && in validate_eth_header_mac()
3955 !is_broadcast_ether_addr(eth_header->eth.dst_mac)) { in validate_eth_header_mac()
3958 if (ether_addr_equal((u8 *)&be_mac, eth_header->eth.dst_mac)) in validate_eth_header_mac()
3962 eth_header->eth.dst_mac, slave); in validate_eth_header_mac()
/linux-4.1.27/arch/cris/include/arch-v32/mach-a3/mach/
Dstartup.inc48 ;; If eth_mdio, eth, geth bits are set in hwprot, don't
51 move.d 0xFC000000, $r2 ; pins 25..0 are eth_mdio, eth, geth
54 btstq REG_BIT(pinmux, rw_hwprot, eth), $r0
55 GIO_SET_P 0x00FFFF00, $r2 ;; pins 8..23 are eth
/linux-4.1.27/arch/cris/include/arch-v32/mach-a3/mach/hwregs/
Dintr_vect_defs.h251 unsigned int eth : 1; member
264 unsigned int eth : 1; member
276 unsigned int eth : 1; member
288 unsigned int eth : 1; member
Dclkgen_defs.h103 unsigned int eth : 1; member
Dpinmux_defs.h86 unsigned int eth : 1; member
/linux-4.1.27/drivers/net/plip/
Dplip.c543 struct ethhdr *eth; in plip_type_trans() local
548 eth = eth_hdr(skb); in plip_type_trans()
550 if(is_multicast_ether_addr(eth->h_dest)) in plip_type_trans()
552 if(ether_addr_equal_64bits(eth->h_dest, dev->broadcast)) in plip_type_trans()
563 if (ntohs(eth->h_proto) >= ETH_P_802_3_MIN) in plip_type_trans()
564 return eth->h_proto; in plip_type_trans()
995 plip_rewrite_address(const struct net_device *dev, struct ethhdr *eth) in plip_rewrite_address() argument
1005 memcpy(eth->h_source, dev->dev_addr, ETH_ALEN); in plip_rewrite_address()
1006 memset(eth->h_dest, 0xfc, 2); in plip_rewrite_address()
1007 memcpy(eth->h_dest+2, &ifa->ifa_address, 4); in plip_rewrite_address()
[all …]
/linux-4.1.27/net/bridge/
Dbr_multicast.c354 struct ethhdr *eth; in br_ip4_multicast_alloc_query() local
357 skb = netdev_alloc_skb_ip_align(br->dev, sizeof(*eth) + sizeof(*iph) + in br_ip4_multicast_alloc_query()
365 eth = eth_hdr(skb); in br_ip4_multicast_alloc_query()
367 ether_addr_copy(eth->h_source, br->dev->dev_addr); in br_ip4_multicast_alloc_query()
368 eth->h_dest[0] = 1; in br_ip4_multicast_alloc_query()
369 eth->h_dest[1] = 0; in br_ip4_multicast_alloc_query()
370 eth->h_dest[2] = 0x5e; in br_ip4_multicast_alloc_query()
371 eth->h_dest[3] = 0; in br_ip4_multicast_alloc_query()
372 eth->h_dest[4] = 0; in br_ip4_multicast_alloc_query()
373 eth->h_dest[5] = 1; in br_ip4_multicast_alloc_query()
[all …]
Dbr_private.h509 struct ethhdr *eth) in br_multicast_querier_exists() argument
511 switch (eth->h_proto) { in br_multicast_querier_exists()
580 struct ethhdr *eth) in br_multicast_querier_exists() argument
/linux-4.1.27/tools/testing/selftests/net/
Dpsock_tpacket.c138 struct ethhdr *eth = pay; in test_payload() local
146 if (eth->h_proto != htons(ETH_P_IP)) { in test_payload()
148 "type: 0x%x!\n", ntohs(eth->h_proto)); in test_payload()
156 struct ethhdr *eth = pay; in create_payload() local
157 struct iphdr *ip = pay + sizeof(*eth); in create_payload()
166 eth->h_proto = htons(ETH_P_IP); in create_payload()
169 ((uint8_t *) pay)[i + sizeof(*eth)] = (uint8_t) rand(); in create_payload()
176 ip->tot_len = htons((uint16_t) *len - sizeof(*eth)); in create_payload()
181 memset(pay + sizeof(*eth) + sizeof(*ip), in create_payload()
/linux-4.1.27/drivers/net/wireless/ath/wil6210/
Dtxrx.c527 struct ethhdr *eth = (void *)skb->data; in wil_netif_rx_any() local
531 int mcast = is_multicast_ether_addr(eth->h_dest); in wil_netif_rx_any()
551 int xmit_cid = wil_find_cid(wil, eth->h_dest); in wil_netif_rx_any()
845 struct ethhdr *eth = (void *)skb->data; in wil_find_tx_ucast() local
846 int cid = wil_find_cid(wil, eth->h_dest); in wil_find_tx_ucast()
861 __func__, eth->h_dest, i); in wil_find_tx_ucast()
941 struct ethhdr *eth = (void *)skb->data; in wil_set_da_for_vring() local
944 ether_addr_copy(eth->h_dest, wil->sta[cid].addr); in wil_set_da_for_vring()
954 struct ethhdr *eth = (void *)skb->data; in wil_find_tx_bcast_2() local
955 char *src = eth->h_source; in wil_find_tx_bcast_2()
[all …]
Dwmi.c504 struct ethhdr *eth; in wmi_evt_eapol_rx() local
526 eth = (struct ethhdr *)skb_put(skb, ETH_HLEN); in wmi_evt_eapol_rx()
527 ether_addr_copy(eth->h_dest, ndev->dev_addr); in wmi_evt_eapol_rx()
528 ether_addr_copy(eth->h_source, evt->src_mac); in wmi_evt_eapol_rx()
529 eth->h_proto = cpu_to_be16(ETH_P_PAE); in wmi_evt_eapol_rx()
/linux-4.1.27/net/bridge/netfilter/
Dnft_reject_bridge.c30 struct ethhdr *eth; in nft_reject_br_push_etherhdr() local
32 eth = (struct ethhdr *)skb_push(nskb, ETH_HLEN); in nft_reject_br_push_etherhdr()
34 ether_addr_copy(eth->h_source, eth_hdr(oldskb)->h_dest); in nft_reject_br_push_etherhdr()
35 ether_addr_copy(eth->h_dest, eth_hdr(oldskb)->h_source); in nft_reject_br_push_etherhdr()
36 eth->h_proto = eth_hdr(oldskb)->h_proto; in nft_reject_br_push_etherhdr()
/linux-4.1.27/net/core/
Dflow_dissector.c226 const struct ethhdr *eth; in __skb_flow_dissect() local
229 eth = __skb_header_pointer(skb, nhoff, in __skb_flow_dissect()
232 if (!eth) in __skb_flow_dissect()
234 proto = eth->h_proto; in __skb_flow_dissect()
235 nhoff += sizeof(*eth); in __skb_flow_dissect()
Dnetpoll.c379 struct ethhdr *eth; in netpoll_send_udp() local
431 eth = (struct ethhdr *) skb_push(skb, ETH_HLEN); in netpoll_send_udp()
433 skb->protocol = eth->h_proto = htons(ETH_P_IPV6); in netpoll_send_udp()
460 eth = (struct ethhdr *) skb_push(skb, ETH_HLEN); in netpoll_send_udp()
462 skb->protocol = eth->h_proto = htons(ETH_P_IP); in netpoll_send_udp()
465 ether_addr_copy(eth->h_source, np->dev->dev_addr); in netpoll_send_udp()
466 ether_addr_copy(eth->h_dest, np->remote_mac); in netpoll_send_udp()
Dpktgen.c2598 __u8 *eth; in process_ipsec() local
2619 eth = (__u8 *) skb_push(skb, ETH_HLEN); in process_ipsec()
2620 memcpy(eth, pkt_dev->hh, 12); in process_ipsec()
2621 *(u16 *) &eth[12] = protocol; in process_ipsec()
2750 __u8 *eth; in fill_packet_ipv4() local
2786 eth = (__u8 *) skb_push(skb, 14); in fill_packet_ipv4()
2817 memcpy(eth, pkt_dev->hh, 12); in fill_packet_ipv4()
2818 *(__be16 *) & eth[12] = protocol; in fill_packet_ipv4()
2879 __u8 *eth; in fill_packet_ipv6() local
2913 eth = (__u8 *) skb_push(skb, 14); in fill_packet_ipv6()
[all …]
Ddev.c2416 struct ethhdr *eth; in skb_network_protocol() local
2421 eth = (struct ethhdr *)skb_mac_header(skb); in skb_network_protocol()
2422 type = eth->h_proto; in skb_network_protocol()
4269 const struct ethhdr *eth; in napi_frags_skb() local
4270 unsigned int hlen = sizeof(*eth); in napi_frags_skb()
4277 eth = skb_gro_header_fast(skb, 0); in napi_frags_skb()
4279 eth = skb_gro_header_slow(skb, hlen, 0); in napi_frags_skb()
4280 if (unlikely(!eth)) { in napi_frags_skb()
4296 skb->protocol = eth->h_proto; in napi_frags_skb()
/linux-4.1.27/drivers/net/
Dmacvlan.c200 const struct ethhdr *eth, bool local) in macvlan_broadcast_one() argument
208 if (ether_addr_equal_64bits(eth->h_dest, dev->broadcast)) in macvlan_broadcast_one()
236 const struct ethhdr *eth = eth_hdr(skb); in macvlan_broadcast() local
251 hash = mc_hash(vlan, eth->h_dest); in macvlan_broadcast()
259 nskb, vlan, eth, in macvlan_broadcast()
405 const struct ethhdr *eth = eth_hdr(skb); in macvlan_handle_frame() local
414 if (is_multicast_ether_addr(eth->h_dest)) { in macvlan_handle_frame()
418 eth = eth_hdr(skb); in macvlan_handle_frame()
419 macvlan_forward_source(skb, port, eth->h_source); in macvlan_handle_frame()
420 src = macvlan_hash_lookup(port, eth->h_source); in macvlan_handle_frame()
[all …]
Drionet.c172 struct ethhdr *eth = (struct ethhdr *)skb->data; in rionet_start_xmit() local
183 if (is_multicast_ether_addr(eth->h_dest)) in rionet_start_xmit()
194 if (is_multicast_ether_addr(eth->h_dest)) { in rionet_start_xmit()
206 } else if (RIONET_MAC_MATCH(eth->h_dest)) { in rionet_start_xmit()
207 destid = RIONET_GET_DESTID(eth->h_dest); in rionet_start_xmit()
Dvxlan.c2051 struct ethhdr *eth; in vxlan_xmit() local
2057 eth = eth_hdr(skb); in vxlan_xmit()
2060 if (ntohs(eth->h_proto) == ETH_P_ARP) in vxlan_xmit()
2063 else if (ntohs(eth->h_proto) == ETH_P_IPV6 && in vxlan_xmit()
2074 eth = eth_hdr(skb); in vxlan_xmit()
2078 f = vxlan_find_mac(vxlan, eth->h_dest); in vxlan_xmit()
2082 (ntohs(eth->h_proto) == ETH_P_IP || in vxlan_xmit()
2083 ntohs(eth->h_proto) == ETH_P_IPV6)) { in vxlan_xmit()
2086 f = vxlan_find_mac(vxlan, eth->h_dest); in vxlan_xmit()
2093 !is_multicast_ether_addr(eth->h_dest)) in vxlan_xmit()
[all …]
/linux-4.1.27/drivers/usb/gadget/legacy/
Dg_ffs.c134 int (*eth)(struct usb_configuration *c); member
141 .eth = bind_rndis_config,
147 .eth = eth_bind_config,
498 if (gc->eth) { in gfs_do_config()
499 ret = gc->eth(c); in gfs_do_config()
/linux-4.1.27/arch/arm/boot/dts/
Dimx1-apf9328.dts62 eth: eth@4,c00000 { label
Dorion5x.dtsi179 eth: ethernet-controller@72000 { label
180 compatible = "marvell,orion-eth";
188 compatible = "marvell,orion-eth-port";
Dspear1310.dtsi140 gmac1: eth@5c400000 {
149 gmac2: eth@5c500000 {
158 gmac3: eth@5c600000 {
167 gmac4: eth@5c700000 {
Dkirkwood.dtsi304 compatible = "marvell,kirkwood-eth";
313 compatible = "marvell,kirkwood-eth-port";
335 compatible = "marvell,kirkwood-eth";
346 compatible = "marvell,kirkwood-eth-port";
Ddove-d2plug.dts44 &eth { status = "okay"; };
Ddove-cubox.dts70 &eth { status = "okay"; };
Dspear1310-evb.dts53 eth {
168 gmac0: eth@e2000000 {
Dstih407-clock.dtsi191 "clk-eth-phy",
192 "clk-eth-ref-phyclk",
Dstih410-clock.dtsi194 "clk-eth-phy",
195 "clk-eth-ref-phyclk",
Dstih418-clock.dtsi194 "clk-eth-phyref",
195 "clk-eth-ref-phyclk",
Dspear3xx.dtsi55 gmac: eth@e0800000 {
Dspear310-evb.dts97 gmac: eth@e0800000 {
Dspear320-evb.dts93 gmac: eth@e0800000 {
Dberlin2cd.dtsi100 compatible = "marvell,pxa168-eth";
118 compatible = "marvell,pxa168-eth";
Dorion5x-rd88f5182-nas.dts99 &eth {
Dspear300-evb.dts78 gmac: eth@e0800000 {
Ddove.dtsi305 eth: ethernet-ctrl@72000 { label
306 compatible = "marvell,orion-eth";
315 compatible = "marvell,orion-eth-port";
Dberlin2.dtsi112 compatible = "marvell,pxa168-eth";
135 compatible = "marvell,pxa168-eth";
Dorion5x-maxtor-shared-storage-2.dts92 &eth {
Dorion5x-lacie-ethernet-disk-mini-v2.dts111 &eth {
Drk3288-evb.dtsi244 eth_phy_pwr: eth-phy-pwr {
Dr8a7791-henninger.dts96 renesas,function = "eth";
Dorion5x-lacie-d2-network.dts138 &eth {
Domap4-var-om44customboard.dtsi200 eth@0 {
Domap3-lilly-dbb056.dts133 <7 0 0x15000000 0x01000000>; /* eth assigend by COM a83x */
Domap4-sdp.dts28 vdd_eth: fixedregulator-vdd-eth {
452 eth@0 {
Dlpc32xx.dtsi83 compatible = "nxp,lpc-eth";
Dspear13xx.dtsi156 gmac0: eth@e2000000 {
Dspear1340-evb.dts166 gmac0: eth@e2000000 {
Dr8a7790-lager.dts299 renesas,function = "eth";
Dr8a7791-koelsch.dts338 renesas,function = "eth";
Dberlin2q.dtsi161 compatible = "marvell,pxa168-eth";
/linux-4.1.27/Documentation/devicetree/bindings/clock/st/
Dst,flexgen.txt113 "clk-eth-phy",
114 "clk-eth-ref-phyclk",
/linux-4.1.27/drivers/scsi/fnic/
Dfnic_fip.h60 struct ethhdr eth; member
Dfnic_fcs.c356 memcpy(vlan->eth.h_source, fip->ctl_src_addr, ETH_ALEN); in fnic_fcoe_send_vlan_req()
357 memcpy(vlan->eth.h_dest, fcoe_all_fcfs, ETH_ALEN); in fnic_fcoe_send_vlan_req()
358 vlan->eth.h_proto = htons(ETH_P_FIP); in fnic_fcoe_send_vlan_req()
/linux-4.1.27/arch/powerpc/boot/dts/
Dc2k.dts95 compatible = "marvell,mv64360-eth-group";
99 compatible = "marvell,mv64360-eth";
108 compatible = "marvell,mv64360-eth";
117 compatible = "marvell,mv64360-eth";
Dprpmc2800.dts94 compatible = "marvell,mv64360-eth-group";
98 compatible = "marvell,mv64360-eth";
107 compatible = "marvell,mv64360-eth";
/linux-4.1.27/drivers/scsi/fcoe/
Dfcoe_ctlr.c388 struct ethhdr eth; in fcoe_ctlr_solicit() member
405 memcpy(sol->eth.h_dest, fcf ? fcf->fcf_mac : fcoe_all_fcfs, ETH_ALEN); in fcoe_ctlr_solicit()
406 memcpy(sol->eth.h_source, fip->ctl_src_addr, ETH_ALEN); in fcoe_ctlr_solicit()
407 sol->eth.h_proto = htons(ETH_P_FIP); in fcoe_ctlr_solicit()
540 struct ethhdr eth; in fcoe_ctlr_send_keep_alive() member
561 memcpy(kal->eth.h_dest, fcf->fcf_mac, ETH_ALEN); in fcoe_ctlr_send_keep_alive()
562 memcpy(kal->eth.h_source, sa, ETH_ALEN); in fcoe_ctlr_send_keep_alive()
563 kal->eth.h_proto = htons(ETH_P_FIP); in fcoe_ctlr_send_keep_alive()
612 struct ethhdr eth; in fcoe_ctlr_encaps() member
630 if (fcoe_ctlr_vn_lookup(fip, d_id, cap->eth.h_dest)) in fcoe_ctlr_encaps()
[all …]
/linux-4.1.27/drivers/usb/gadget/function/
Df_subset.c465 struct f_gether *eth; in geth_free() local
467 eth = func_to_geth(f); in geth_free()
468 kfree(eth); in geth_free()
/linux-4.1.27/arch/cris/arch-v32/mach-a3/
Dpinmux.c103 clk_ctrl.eth = regk_clkgen_yes; in crisv32_pinmux_alloc_fixed()
107 hwprot.eth = hwprot.eth_mdio = regk_pinmux_yes; in crisv32_pinmux_alloc_fixed()
282 hwprot.eth = hwprot.eth_mdio = hwprot.geth = regk_pinmux_no; in crisv32_pinmux_dealloc_fixed()
/linux-4.1.27/include/uapi/linux/
Dif_arcnet.h84 struct ethhdr eth; /* standard ethernet header (yuck!) */ member
/linux-4.1.27/arch/xtensa/platforms/iss/
Dnetwork.c677 struct iss_net_init *eth; in iss_net_init() local
678 eth = list_entry(ele, struct iss_net_init, list); in iss_net_init()
679 iss_net_configure(eth->index, eth->init); in iss_net_init()
/linux-4.1.27/net/wireless/
Dutil.c656 const struct ethhdr *eth; in ieee80211_amsdu_to_8023s() local
666 eth = (struct ethhdr *) skb_pull(skb, sizeof(struct ethhdr)); in ieee80211_amsdu_to_8023s()
667 if (!eth) in ieee80211_amsdu_to_8023s()
670 eth = (struct ethhdr *) skb->data; in ieee80211_amsdu_to_8023s()
675 __be16 len = eth->h_proto; in ieee80211_amsdu_to_8023s()
679 memcpy(dst, eth->h_dest, ETH_ALEN); in ieee80211_amsdu_to_8023s()
680 memcpy(src, eth->h_source, ETH_ALEN); in ieee80211_amsdu_to_8023s()
705 eth = (struct ethhdr *)skb_pull(skb, ntohs(len) + in ieee80211_amsdu_to_8023s()
707 if (!eth) { in ieee80211_amsdu_to_8023s()
/linux-4.1.27/drivers/net/hamradio/
Dbpqether.c183 struct ethhdr *eth; in bpq_rcv() local
208 eth = eth_hdr(skb); in bpq_rcv()
211 !ether_addr_equal(eth->h_source, bpq->acpt_addr)) in bpq_rcv()
/linux-4.1.27/drivers/net/wireless/ipw2x00/
Dlibipw_tx.c225 struct ethhdr *eth; in libipw_classify() local
228 eth = (struct ethhdr *)skb->data; in libipw_classify()
229 if (eth->h_proto != htons(ETH_P_IP)) in libipw_classify()
/linux-4.1.27/Documentation/networking/
Dopenvswitch.txt85 in_port(1), eth(src=e0:91:f5:21:d0:b2, dst=00:02:e3:0f:80:a4),
91 in_port(1), eth(...), eth_type(0x0800), ipv4(...), tcp(...)
169 eth(...), eth_type(0x8100)
177 eth(...), vlan(vid=10, pcp=0), eth_type(0x0800), ip(proto=6, ...), tcp(...)
192 eth(...), eth_type(0x8100), vlan(vid=10, pcp=0), encap(eth_type(0x0800),
220 eth(...), eth_type(0x0800), ip(proto=6, ...), tcp(src=0, dst=0)
227 eth(...), eth_type(0x8100), vlan(0), encap()
De100.txt63 ethtool -G eth? rx n, where n is the number of desired rx descriptors.
72 ethtool -G eth? tx n, where n is the number of desired tx descriptors.
77 ethtool -s eth? autoneg off speed {10|100} duplex {full|half}
86 ethtool -s eth? msglvl n
Dcxgb.txt191 eth#: Chelsio N210 1x10GBaseX NIC (rev #), PCIX 133MHz/64-bit
194 eth#: link is up at 10 Gbps, full duplex
197 eth#: link is down
247 the ifcfg-eth# config files in /etc/sysconfig/network-scripts, looking
251 ifcfg-eth# files, it will bring up the device with the next available
Dde4x5.txt78 6) run the net startup bits for your new eth?? interface(s) manually
83 'ifconfig eth?? down' then 'rmmod de4x5'.
148 time OR during a module load (insmod de4x5 args='eth??:fdx' [see
Digb.txt48 ip link set dev eth<x> mtu 9000
Dgeneric-hdlc.txt69 * hdlc-eth - Ethernet device emulation using HDLC. Parity and encoding
De1000e.txt253 ifconfig eth<x> mtu 9000 up
297 adapters. To verify if a port supports Wake on Lan run ethtool eth<X>.
De1000.txt402 ifconfig eth<x> mtu 9000 up
409 to the file /etc/sysconfig/network-scripts/ifcfg-eth<x>. This example
Dpacket_mmap.txt874 struct ethhdr *eth = (struct ethhdr *) ((uint8_t *) ppd + ppd->tp_mac);
875 struct iphdr *ip = (struct iphdr *) ((uint8_t *) eth + ETH_HLEN);
877 if (eth->h_proto == htons(ETH_P_IP)) {
Dixgbe.txt116 ethtool -A eth? autoneg off RX off TX off
Dbonding.txt1144 The file name must be prefixed with "ifcfg-eth" and suffixed
2696 # ifenslave bond0 eth...
/linux-4.1.27/drivers/firewire/
Dnet.c514 struct fwnet_header *eth; in fwnet_finish_incoming_packet() local
519 skb_pull(skb, sizeof(*eth)); in fwnet_finish_incoming_packet()
520 eth = (struct fwnet_header *)skb_mac_header(skb); in fwnet_finish_incoming_packet()
521 if (fwnet_hwaddr_is_multicast(eth->h_dest)) { in fwnet_finish_incoming_packet()
522 if (memcmp(eth->h_dest, net->broadcast, in fwnet_finish_incoming_packet()
530 if (memcmp(eth->h_dest, net->dev_addr, net->addr_len)) in fwnet_finish_incoming_packet()
533 if (ntohs(eth->h_proto) >= ETH_P_802_3_MIN) { in fwnet_finish_incoming_packet()
534 protocol = eth->h_proto; in fwnet_finish_incoming_packet()
/linux-4.1.27/arch/arm/mach-mmp/
Dclock-pxa168.c60 static APMU_CLK(eth, ETH, 0x09, 0);
Dpxa168.c112 PXA168_DEVICE(eth, "pxa168-eth", -1, MFU, 0xc0800000, 0x0fff);
/linux-4.1.27/arch/cris/include/arch-v32/arch/hwregs/
DMakefile53 REGDESC += $(BASEDIR)/io/eth/rtl/eth_regs.r
106 eth_defs.h: $(BASEDIR)/io/eth/rtl/eth_regs.r
/linux-4.1.27/net/irda/irlan/
Dirlan_common.c69 static bool eth; /* Use "eth" or "irlan" name for devices */ variable
200 dev = alloc_irlandev(eth ? "eth%d" : "irlan%d"); in irlan_open()
1169 module_param(eth, bool, 0);
1170 MODULE_PARM_DESC(eth, "Name devices ethX (0) or irlanX (1)");
/linux-4.1.27/drivers/net/usb/
Dsierra_net.c665 struct ethhdr *eth; in sierra_net_bind() local
704 eth = (struct ethhdr *)priv->ethr_hdr_tmpl; in sierra_net_bind()
705 memcpy(&eth->h_dest, dev->net->dev_addr, ETH_ALEN); in sierra_net_bind()
706 eth->h_proto = cpu_to_be16(ETH_P_IP); in sierra_net_bind()
DKconfig429 Choose this option to support the "usb-eth" networking driver
469 protocol. Only the "eth-fd" or "net_fd" drivers in these devices
/linux-4.1.27/Documentation/DocBook/
D.networking.xml.cmd2 …include/net/wimax.h include/uapi/linux/wimax.h net/core/dev.c net/ethernet/eth.c net/sched/sch_gen…
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmfmac/
Dfweh.c67 struct ethhdr eth; member
461 memcpy(event->ifaddr, event_packet->eth.h_dest, ETH_ALEN); in brcmf_fweh_process_event()
/linux-4.1.27/drivers/net/ethernet/amd/
Dsunlance.c887 struct ethhdr __iomem *eth = (struct ethhdr __iomem *) packet; in build_fake_packet() local
891 sbus_writeb(dev->dev_addr[i], &eth->h_dest[i]); in build_fake_packet()
892 sbus_writeb(dev->dev_addr[i], &eth->h_source[i]); in build_fake_packet()
900 struct ethhdr *eth = (struct ethhdr *) packet; in build_fake_packet() local
903 eth->h_dest[i] = dev->dev_addr[i]; in build_fake_packet()
904 eth->h_source[i] = dev->dev_addr[i]; in build_fake_packet()
/linux-4.1.27/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c106 I40E_PF_STAT("rx_bytes", stats.eth.rx_bytes),
107 I40E_PF_STAT("tx_bytes", stats.eth.tx_bytes),
108 I40E_PF_STAT("rx_unicast", stats.eth.rx_unicast),
109 I40E_PF_STAT("tx_unicast", stats.eth.tx_unicast),
110 I40E_PF_STAT("rx_multicast", stats.eth.rx_multicast),
111 I40E_PF_STAT("tx_multicast", stats.eth.tx_multicast),
112 I40E_PF_STAT("rx_broadcast", stats.eth.rx_broadcast),
113 I40E_PF_STAT("tx_broadcast", stats.eth.tx_broadcast),
114 I40E_PF_STAT("tx_errors", stats.eth.tx_errors),
115 I40E_PF_STAT("rx_dropped", stats.eth.rx_discards),
Di40e_main.c930 &osd->eth.rx_bytes, &nsd->eth.rx_bytes); in i40e_update_pf_stats()
934 &osd->eth.tx_bytes, &nsd->eth.tx_bytes); in i40e_update_pf_stats()
937 &osd->eth.rx_discards, in i40e_update_pf_stats()
938 &nsd->eth.rx_discards); in i40e_update_pf_stats()
942 &osd->eth.rx_unicast, in i40e_update_pf_stats()
943 &nsd->eth.rx_unicast); in i40e_update_pf_stats()
947 &osd->eth.rx_multicast, in i40e_update_pf_stats()
948 &nsd->eth.rx_multicast); in i40e_update_pf_stats()
952 &osd->eth.rx_broadcast, in i40e_update_pf_stats()
953 &nsd->eth.rx_broadcast); in i40e_update_pf_stats()
[all …]
Di40e_type.h1094 struct i40e_eth_stats eth; member
/linux-4.1.27/drivers/net/ethernet/
DMakefile54 obj-$(CONFIG_NET_NETX) += netx-eth.o
DKconfig133 will be called netx-eth.
/linux-4.1.27/drivers/staging/rtl8192u/ieee80211/
Dieee80211_tx.c277 struct ethhdr *eth; in ieee80211_classify() local
279 eth = (struct ethhdr *)skb->data; in ieee80211_classify()
280 if (eth->h_proto != htons(ETH_P_IP)) in ieee80211_classify()
/linux-4.1.27/drivers/net/ethernet/brocade/bna/
Dbfa_defs_cna.h109 struct bfa_port_eth_stats eth; member
/linux-4.1.27/drivers/staging/rtl8192e/
Drtllib_tx.c256 struct ethhdr *eth; in rtllib_classify() local
259 eth = (struct ethhdr *)skb->data; in rtllib_classify()
260 if (eth->h_proto != htons(ETH_P_IP)) in rtllib_classify()
/linux-4.1.27/Documentation/devicetree/bindings/
Dmarvell.txt113 - compatible : "marvell,mv64360-eth-block"
123 compatible = "marvell,mv64360-eth-block";
133 - compatible : Should be "marvell,mv64360-eth".
145 compatible = "marvell,mv64360-eth";
/linux-4.1.27/include/rdma/
Dib_pack.h233 struct ib_unpacked_eth eth; member
Dib_verbs.h1386 struct ib_flow_spec_eth eth; member
/linux-4.1.27/arch/mips/include/asm/ip32/
Dmace.h353 struct mace_ethernet eth; member
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/
Dd3.c401 struct ethhdr eth; in iwl_mvm_build_tcp_packet() member
409 pkt->eth.h_proto = cpu_to_be16(ETH_P_IP), in iwl_mvm_build_tcp_packet()
418 memcpy(pkt->eth.h_dest, tcp->dst_mac, ETH_ALEN); in iwl_mvm_build_tcp_packet()
419 memcpy(pkt->eth.h_source, vif->addr, ETH_ALEN); in iwl_mvm_build_tcp_packet()
432 memcpy(pkt->eth.h_dest, vif->addr, ETH_ALEN); in iwl_mvm_build_tcp_packet()
433 memcpy(pkt->eth.h_source, tcp->dst_mac, ETH_ALEN); in iwl_mvm_build_tcp_packet()
/linux-4.1.27/Documentation/scsi/
Dbnx2fc.txt30 d. Edit all the cfg-eth files to set "no" for DCB_REQUIRED** field, and
/linux-4.1.27/drivers/staging/rtl8723au/os_dep/
Dos_intfs.c314 struct ethhdr *eth = (struct ethhdr *)skb->data; in rtw_recv_select_queue23a() local
316 u16 eth_type = get_unaligned_be16(&eth->h_proto); in rtw_recv_select_queue23a()
/linux-4.1.27/drivers/isdn/i4l/
Disdn_net.c1366 struct ethhdr *eth; in isdn_net_type_trans() local
1371 eth = eth_hdr(skb); in isdn_net_type_trans()
1373 if (*eth->h_dest & 1) { in isdn_net_type_trans()
1374 if (ether_addr_equal(eth->h_dest, dev->broadcast)) in isdn_net_type_trans()
1385 if (!ether_addr_equal(eth->h_dest, dev->dev_addr)) in isdn_net_type_trans()
1388 if (ntohs(eth->h_proto) >= ETH_P_802_3_MIN) in isdn_net_type_trans()
1389 return eth->h_proto; in isdn_net_type_trans()
/linux-4.1.27/net/atm/
Dmpc.c574 struct ethhdr *eth; in mpc_send_packet() local
583 eth = (struct ethhdr *)skb->data; in mpc_send_packet()
584 if (eth->h_proto != htons(ETH_P_IP)) in mpc_send_packet()
595 if (ether_addr_equal(eth->h_dest, mpc->mps_macs + i * ETH_ALEN)) in mpc_send_packet()
/linux-4.1.27/drivers/s390/char/
Ddefkeymap.map16 keycode 12 = nul eth
/linux-4.1.27/include/linux/mlx4/
Ddevice.h771 struct mlx4_eth_av eth; member
1174 struct mlx4_spec_eth eth; member
1281 struct mlx4_net_trans_rule_hw_eth eth; member
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb3/
Dsge.c2268 int packet_complete, eth, ethpad = 2; in process_responses() local
2275 eth = r->rss_hdr.opcode == CPL_RX_PKT; in process_responses()
2304 lro &= eth && is_eth_tcp(rss_hi); in process_responses()
2324 eth ? in process_responses()
2329 eth ? SGE_RX_DROP_THRES : 0); in process_responses()
2331 if (!eth) in process_responses()
2365 if (eth) in process_responses()
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_cmn.c3737 struct ethhdr *eth; in bnx2x_start_xmit() local
3786 eth = (struct ethhdr *)skb->data; in bnx2x_start_xmit()
3789 if (unlikely(is_multicast_ether_addr(eth->h_dest))) { in bnx2x_start_xmit()
3790 if (is_broadcast_ether_addr(eth->h_dest)) in bnx2x_start_xmit()
3884 cpu_to_le16(ntohs(eth->h_proto)); in bnx2x_start_xmit()
3956 eth->h_source); in bnx2x_start_xmit()
3961 eth->h_dest); in bnx2x_start_xmit()
3968 eth->h_dest); in bnx2x_start_xmit()
3976 eth->h_source); in bnx2x_start_xmit()
Dbnx2x.h1175 struct eth_context eth; member
Dbnx2x_sriov.c2120 q->cxt = &((base_cxt + i)->eth); in bnx2x_vf_acquire()
Dbnx2x_main.c8653 &bp->context[cxt_index].vcxt[cxt_offset].eth; in bnx2x_pf_q_prep_init()
14003 vcxt[cxt_offset].eth, in bnx2x_cnic_sp_post()
/linux-4.1.27/drivers/net/wireless/ath/ath10k/
Dhtt_rx.c1094 struct ethhdr *eth; in ath10k_htt_rx_h_undecap_eth() local
1110 eth = (struct ethhdr *)msdu->data; in ath10k_htt_rx_h_undecap_eth()
1111 ether_addr_copy(da, eth->h_dest); in ath10k_htt_rx_h_undecap_eth()
1112 ether_addr_copy(sa, eth->h_source); in ath10k_htt_rx_h_undecap_eth()
/linux-4.1.27/drivers/net/ethernet/amd/xgbe/
Dxgbe-drv.c2195 struct ethhdr *eth = (struct ethhdr *)skb->data; in xgbe_print_pkt() local
2205 netdev_alert(netdev, "Dst MAC addr: %pM\n", eth->h_dest); in xgbe_print_pkt()
2206 netdev_alert(netdev, "Src MAC addr: %pM\n", eth->h_source); in xgbe_print_pkt()
2207 netdev_alert(netdev, "Protocol: 0x%04hx\n", ntohs(eth->h_proto)); in xgbe_print_pkt()
/linux-4.1.27/Documentation/device-mapper/
Dswitch.txt25 session is connected to an eth port on a single member. Data to a LUN
/linux-4.1.27/drivers/net/wireless/orinoco/
Dmain.c391 struct ethhdr eth; /* 802.3 header */ in orinoco_process_xmit_skb() member
405 memcpy(&hdr.eth, eh, 2 * ETH_ALEN); in orinoco_process_xmit_skb()
406 hdr.eth.h_proto = htons(len); in orinoco_process_xmit_skb()
/linux-4.1.27/drivers/net/ethernet/apm/xgene/
Dxgene_enet_main.c100 const struct ethhdr *eth = data; in xgene_enet_hdr_len() local
102 return (eth->h_proto == htons(ETH_P_8021Q)) ? VLAN_ETH_HLEN : ETH_HLEN; in xgene_enet_hdr_len()
/linux-4.1.27/drivers/net/ethernet/intel/i40evf/
Di40e_type.h1069 struct i40e_eth_stats eth; member
/linux-4.1.27/drivers/scsi/bfa/
Dbfa_defs.h1097 union sfp_xcvr_eth_code_u eth; member
Dbfa_defs_svc.h1332 struct bfa_port_eth_stats_s eth; member
/linux-4.1.27/Documentation/isdn/
DREADME420 which starts with "eth". The number of "eth"-interfaces is limited by
/linux-4.1.27/Documentation/virtual/uml/
DUserModeLinux-HOWTO.txt944 eth <n> = <transport> , <transport args>
965 must be different than the IP you assign to the eth device inside UML.
967 you can reuse the host's eth IP address for the host ends of the tap
968 devices. Internally, the UMLs must still get unique IPs for their eth
1222 eth <n> =tuntap,,, <IP address>
1239 Note that the IP address that must be used for the eth device inside
1445 o Bring the eth device up in UML and you're in business.
1479 eth <n> =ethertap, <device> , <ethernet address> , <tap IP address>
/linux-4.1.27/drivers/net/wireless/
Dairo.c1450 static int decapsulate(struct airo_info *ai, MICBuffer *mic, etherHead *eth, u16 payLen) in decapsulate() argument
1462 if (memcmp ((u8*)eth + 14, micsnap, sizeof(micsnap)) == 0) { in decapsulate()
1490 int mcast = eth->da[0] & 1; in decapsulate()
1506 emmh32_update(&context->seed, eth->da, ETH_ALEN*2); in decapsulate()
1509 emmh32_update(&context->seed, (u8 *)(eth + 1),payLen); in decapsulate()
/linux-4.1.27/drivers/net/ethernet/broadcom/
Dcnic_defs.h3665 struct xstorm_fcoe_eth_context_section eth; member
/linux-4.1.27/drivers/pinctrl/sh-pfc/
Dpfc-r8a7791.c4975 SH_PFC_FUNCTION(eth),
Dpfc-r8a7790.c4605 SH_PFC_FUNCTION(eth),
/linux-4.1.27/Documentation/
Ddevices.txt872 accessible as a standard networking "eth" device.
/linux-4.1.27/
DMAINTAINERS5289 F: drivers/net/ethernet/sgi/ioc3-eth.c