Home
last modified time | relevance | path

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

/linux-4.4.14/net/ethernet/
Deth.c83 struct ethhdr *eth = (struct ethhdr *)skb_push(skb, ETH_HLEN); in eth_header() local
86 eth->h_proto = htons(type); in eth_header()
88 eth->h_proto = htons(len); in eth_header()
96 memcpy(eth->h_source, saddr, ETH_ALEN); in eth_header()
99 memcpy(eth->h_dest, daddr, ETH_ALEN); in eth_header()
108 eth_zero_addr(eth->h_dest); in eth_header()
126 const struct ethhdr *eth = (const struct ethhdr *)data; in eth_get_headlen() local
130 if (unlikely(len < sizeof(*eth))) in eth_get_headlen()
134 if (!skb_flow_dissect_flow_keys_buf(&keys, data, eth->h_proto, in eth_get_headlen()
135 sizeof(*eth), len, 0)) in eth_get_headlen()
[all …]
DMakefile5 obj-y += eth.o
/linux-4.4.14/drivers/infiniband/hw/mlx4/
Dah.c87 rdma_get_mcast_mac(&in6, ah->av.eth.mac); in create_iboe_ah()
89 memcpy(ah->av.eth.mac, ah_attr->dmac, ETH_ALEN); in create_iboe_ah()
95 memset(ah->av.eth.s_mac, 0, ETH_ALEN); in create_iboe_ah()
99 memcpy(ah->av.eth.s_mac, gid_attr.ndev->dev_addr, ETH_ALEN); in create_iboe_ah()
104 ah->av.eth.port_pd = cpu_to_be32(to_mpd(pd)->pdn | (ah_attr->port_num << 24)); in create_iboe_ah()
105 …ah->av.eth.gid_index = mlx4_ib_gid_index_to_real_index(ibdev, ah_attr->port_num, ah_attr->grh.sgid… in create_iboe_ah()
106 ah->av.eth.vlan = cpu_to_be16(vlan_tag); in create_iboe_ah()
108 ah->av.eth.stat_rate = ah_attr->static_rate + MLX4_STAT_RATE_OFFSET; in create_iboe_ah()
109 while (ah->av.eth.stat_rate > IB_RATE_2_5_GBPS + MLX4_STAT_RATE_OFFSET && in create_iboe_ah()
110 !(1 << ah->av.eth.stat_rate & dev->caps.stat_rate_support)) in create_iboe_ah()
[all …]
Dqp.c2312 if (ah->av.eth.vlan != cpu_to_be16(0xffff)) { in build_mlx_header()
2313 vlan = be16_to_cpu(ah->av.eth.vlan) & 0x0fff; in build_mlx_header()
2388 memcpy(sqp->ud_header.eth.dmac_h, ah->av.eth.mac, 6); in build_mlx_header()
2390 memcpy(&ctrl->srcrb_flags16[0], ah->av.eth.mac, 2); in build_mlx_header()
2391 memcpy(&ctrl->imm, ah->av.eth.mac + 2, 4); in build_mlx_header()
2399 memcpy(sqp->ud_header.eth.smac_h, smac, ETH_ALEN); in build_mlx_header()
2402 memcpy(sqp->ud_header.eth.smac_h, ah->av.eth.s_mac, ETH_ALEN); in build_mlx_header()
2405 if (!memcmp(sqp->ud_header.eth.smac_h, sqp->ud_header.eth.dmac_h, 6)) in build_mlx_header()
2408 sqp->ud_header.eth.type = cpu_to_be16(MLX4_IB_IBOE_ETHERTYPE); in build_mlx_header()
2595 dseg->vlan = to_mah(wr->ah)->av.eth.vlan; in set_datagram_seg()
[all …]
Dmain.c1307 memcpy(mlx4_spec->eth.dst_mac, ib_spec->eth.val.dst_mac, in parse_flow_attr()
1309 memcpy(mlx4_spec->eth.dst_mac_msk, ib_spec->eth.mask.dst_mac, in parse_flow_attr()
1311 mlx4_spec->eth.vlan_tag = ib_spec->eth.val.vlan_tag; in parse_flow_attr()
1312 mlx4_spec->eth.vlan_tag_msk = ib_spec->eth.mask.vlan_tag; in parse_flow_attr()
1573 err = mlx4_tunnel_steer_add(to_mdev(qp->device)->dev, ib_spec->eth.val.dst_mac, in mlx4_ib_tunnel_steer_add()
Dmad.c1274 memcpy(to_mah(ah)->av.eth.s_mac, s_mac, 6); in mlx4_ib_send_to_wire()
1277 to_mah(ah)->av.eth.vlan = cpu_to_be16(vlan_id); in mlx4_ib_send_to_wire()
/linux-4.4.14/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.4.14/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.4.14/drivers/infiniband/hw/ocrdma/
Docrdma_ah.c63 struct ocrdma_eth_vlan eth; in set_av_attr() local
67 memset(&eth, 0, sizeof(eth)); in set_av_attr()
80 eth.eth_type = cpu_to_be16(0x8100); in set_av_attr()
81 eth.roce_eth_type = cpu_to_be16(OCRDMA_ROCE_ETH_TYPE); in set_av_attr()
83 eth.vlan_tag = cpu_to_be16(vlan_tag); in set_av_attr()
87 eth.eth_type = cpu_to_be16(OCRDMA_ROCE_ETH_TYPE); in set_av_attr()
91 memcpy(&eth.smac[0], &dev->nic_info.mac_addr[0], ETH_ALEN); in set_av_attr()
92 status = ocrdma_resolve_dmac(dev, attr, &eth.dmac[0]); in set_av_attr()
106 memcpy(&ah->av->eth_hdr, &eth, eth_sz); in set_av_attr()
/linux-4.4.14/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.4.14/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.4.14/net/openvswitch/
Dflow.c321 key->eth.tci = qp->tci | htons(VLAN_TAG_PRESENT); in parse_vlan()
464 struct ethhdr *eth; in key_extract() local
474 eth = eth_hdr(skb); in key_extract()
475 ether_addr_copy(key->eth.src, eth->h_source); in key_extract()
476 ether_addr_copy(key->eth.dst, eth->h_dest); in key_extract()
483 key->eth.tci = 0; in key_extract()
485 key->eth.tci = htons(skb->vlan_tci); in key_extract()
486 else if (eth->h_proto == htons(ETH_P_8021Q)) in key_extract()
490 key->eth.type = parse_ethertype(skb); in key_extract()
491 if (unlikely(key->eth.type == htons(0))) in key_extract()
[all …]
Dflow_netlink.c149 if (match->key->eth.type == htons(ETH_P_ARP) in match_validate()
150 || match->key->eth.type == htons(ETH_P_RARP)) { in match_validate()
152 if (match->mask && (match->mask->key.eth.type == htons(0xffff))) in match_validate()
156 if (eth_p_mpls(match->key->eth.type)) { in match_validate()
158 if (match->mask && (match->mask->key.eth.type == htons(0xffff))) in match_validate()
162 if (match->key->eth.type == htons(ETH_P_IP)) { in match_validate()
164 if (match->mask && (match->mask->key.eth.type == htons(0xffff))) in match_validate()
197 if (match->key->eth.type == htons(ETH_P_IPV6)) { in match_validate()
199 if (match->mask && (match->mask->key.eth.type == htons(0xffff))) in match_validate()
917 SW_FLOW_KEY_MEMCPY(match, eth.src, in ovs_key_from_nlattrs()
[all …]
Dactions.c132 key->eth.type = htons(0); in invalidate_flow_key()
137 return !!key->eth.type; in is_flow_key_valid()
237 key->eth.tci = 0; in pop_vlan()
247 key->eth.tci = vlan->vlan_tci; in push_vlan()
283 ether_addr_copy(flow_key->eth.src, eth_hdr(skb)->h_source); in set_eth_addr()
284 ether_addr_copy(flow_key->eth.dst, eth_hdr(skb)->h_dest); in set_eth_addr()
748 __be16 ethertype = key->eth.type; in do_output()
Dflow.h74 } eth; member
Dconntrack.c60 switch (ntohs(key->eth.type)) { in key_to_nfproto()
309 if (key->eth.type == htons(ETH_P_IP)) { in handle_fragments()
320 } else if (key->eth.type == htons(ETH_P_IPV6)) { in handle_fragments()
Ddatapath.c553 struct ethhdr *eth; in ovs_packet_cmd_execute() local
575 eth = eth_hdr(packet); in ovs_packet_cmd_execute()
580 if (eth_proto_is_802_3(eth->h_proto)) in ovs_packet_cmd_execute()
581 packet->protocol = eth->h_proto; in ovs_packet_cmd_execute()
/linux-4.4.14/Documentation/devicetree/bindings/pinctrl/
Dimg,pistachio-pinctrl.txt116 mfio63 eth, mips_trace_clk, mips_trace_data
117 mfio64 eth, mips_trace_dint, mips_trace_data
118 mfio65 eth, mips_trace_trigout, mips_trace_data
119 mfio66 eth, mips_trace_trigin, mips_trace_data
120 mfio67 eth, mips_trace_dm, mips_trace_data
121 mfio68 eth, mips_trace_probe_n, mips_trace_data
122 mfio69 eth, mips_trace_data
123 mfio70 eth, mips_trace_data
124 mfio71 eth
/linux-4.4.14/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.4.14/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.h217 struct ib_uverbs_flow_spec_eth eth; member
Duverbs_cmd.c3036 ib_spec->eth.size = sizeof(struct ib_flow_spec_eth); in kern_spec_to_ib_spec()
3037 if (ib_spec->eth.size != kern_spec->eth.size) in kern_spec_to_ib_spec()
3039 memcpy(&ib_spec->eth.val, &kern_spec->eth.val, in kern_spec_to_ib_spec()
3041 memcpy(&ib_spec->eth.mask, &kern_spec->eth.mask, in kern_spec_to_ib_spec()
/linux-4.4.14/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.4.14/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.4.14/net/sched/
Dcls_flower.c30 struct flow_dissector_key_eth_addrs eth; member
249 fl_set_key_val(tb, key->eth.dst, TCA_FLOWER_KEY_ETH_DST, in fl_set_key()
250 mask->eth.dst, TCA_FLOWER_KEY_ETH_DST_MASK, in fl_set_key()
251 sizeof(key->eth.dst)); in fl_set_key()
252 fl_set_key_val(tb, key->eth.src, TCA_FLOWER_KEY_ETH_SRC, in fl_set_key()
253 mask->eth.src, TCA_FLOWER_KEY_ETH_SRC_MASK, in fl_set_key()
254 sizeof(key->eth.src)); in fl_set_key()
361 FLOW_DISSECTOR_KEY_ETH_ADDRS, eth); in fl_init_dissector()
603 if (fl_dump_key_val(skb, key->eth.dst, TCA_FLOWER_KEY_ETH_DST, in fl_dump()
604 mask->eth.dst, TCA_FLOWER_KEY_ETH_DST_MASK, in fl_dump()
[all …]
/linux-4.4.14/arch/xtensa/platforms/xtfpga/
Dsetup.c141 struct device_node *eth = NULL; in machine_setup() local
146 if ((eth = of_find_compatible_node(eth, NULL, "opencores,ethoc"))) in machine_setup()
147 update_local_mac(eth); in machine_setup()
/linux-4.4.14/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.c1306 memcpy(spec_l2->eth.dst_mac_msk, &mac_msk, ETH_ALEN); in mlx4_en_ethtool_add_mac_rule()
1307 memcpy(spec_l2->eth.dst_mac, mac, ETH_ALEN); in mlx4_en_ethtool_add_mac_rule()
1311 spec_l2->eth.vlan_id = cmd->fs.h_ext.vlan_tci; in mlx4_en_ethtool_add_mac_rule()
1312 spec_l2->eth.vlan_id_msk = cpu_to_be16(VLAN_VID_MASK); in mlx4_en_ethtool_add_mac_rule()
1472 spec_l2->eth.ether_type = eth_spec->h_proto; in mlx4_en_ethtool_to_net_trans_rule()
1474 spec_l2->eth.ether_type_enable = 1; in mlx4_en_ethtool_to_net_trans_rule()
Dresource_tracker.c4128 if (!is_multicast_ether_addr(eth_header->eth.dst_mac) && in validate_eth_header_mac()
4129 !is_broadcast_ether_addr(eth_header->eth.dst_mac)) { in validate_eth_header_mac()
4132 if (ether_addr_equal((u8 *)&be_mac, eth_header->eth.dst_mac)) in validate_eth_header_mac()
4136 eth_header->eth.dst_mac, slave); in validate_eth_header_mac()
4145 if (is_multicast_ether_addr(eth_header->eth.dst_mac) || in handle_eth_header_mcast_prio()
4146 is_broadcast_ether_addr(eth_header->eth.dst_mac)) { in handle_eth_header_mcast_prio()
4147 struct mlx4_net_trans_rule_hw_eth *eth = in handle_eth_header_mcast_prio() local
4149 struct _rule_hw *next_rule = (struct _rule_hw *)(eth + 1); in handle_eth_header_mcast_prio()
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()
/linux-4.4.14/Documentation/DocBook/
Dnetworking.xml.db361 API-eth-header
362 API-eth-get-headlen
363 API-eth-type-trans
364 API-eth-header-parse
365 API-eth-header-cache
366 API-eth-header-cache-update
367 API-eth-prepare-mac-addr-change
368 API-eth-commit-mac-addr-change
369 API-eth-mac-addr
370 API-eth-change-mtu
[all …]
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.4.14/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.4.14/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.4.14/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.4.14/net/bridge/
Dbr_multicast.c368 struct ethhdr *eth; in br_ip4_multicast_alloc_query() local
371 skb = netdev_alloc_skb_ip_align(br->dev, sizeof(*eth) + sizeof(*iph) + in br_ip4_multicast_alloc_query()
379 eth = eth_hdr(skb); in br_ip4_multicast_alloc_query()
381 ether_addr_copy(eth->h_source, br->dev->dev_addr); in br_ip4_multicast_alloc_query()
382 eth->h_dest[0] = 1; in br_ip4_multicast_alloc_query()
383 eth->h_dest[1] = 0; in br_ip4_multicast_alloc_query()
384 eth->h_dest[2] = 0x5e; in br_ip4_multicast_alloc_query()
385 eth->h_dest[3] = 0; in br_ip4_multicast_alloc_query()
386 eth->h_dest[4] = 0; in br_ip4_multicast_alloc_query()
387 eth->h_dest[5] = 1; in br_ip4_multicast_alloc_query()
[all …]
Dbr_private.h584 struct ethhdr *eth) in br_multicast_querier_exists() argument
586 switch (eth->h_proto) { in br_multicast_querier_exists()
659 struct ethhdr *eth) in br_multicast_querier_exists() argument
/linux-4.4.14/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.4.14/drivers/net/ipvlan/
Dipvlan_core.c501 struct ethhdr *eth = eth_hdr(skb); in ipvlan_xmit_mode_l2() local
506 if (ether_addr_equal(eth->h_dest, eth->h_source)) { in ipvlan_xmit_mode_l2()
524 } else if (is_multicast_ether_addr(eth->h_dest)) { in ipvlan_xmit_mode_l2()
561 struct ethhdr *eth = eth_hdr(skb); in ipvlan_external_frame() local
566 if (ether_addr_equal(eth->h_source, skb->dev->dev_addr)) { in ipvlan_external_frame()
604 struct ethhdr *eth = eth_hdr(skb); in ipvlan_handle_mode_l2() local
609 if (is_multicast_ether_addr(eth->h_dest)) { in ipvlan_handle_mode_l2()
/linux-4.4.14/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.4.14/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()
419 eth = eth_hdr(skb); in macvlan_handle_frame()
420 macvlan_forward_source(skb, port, eth->h_source); in macvlan_handle_frame()
421 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.c2142 struct ethhdr *eth; in vxlan_xmit() local
2150 eth = eth_hdr(skb); in vxlan_xmit()
2153 if (ntohs(eth->h_proto) == ETH_P_ARP) in vxlan_xmit()
2156 else if (ntohs(eth->h_proto) == ETH_P_IPV6 && in vxlan_xmit()
2167 eth = eth_hdr(skb); in vxlan_xmit()
2177 f = vxlan_find_mac(vxlan, eth->h_dest); in vxlan_xmit()
2181 (ntohs(eth->h_proto) == ETH_P_IP || in vxlan_xmit()
2182 ntohs(eth->h_proto) == ETH_P_IPV6)) { in vxlan_xmit()
2185 f = vxlan_find_mac(vxlan, eth->h_dest); in vxlan_xmit()
2192 !is_multicast_ether_addr(eth->h_dest)) in vxlan_xmit()
[all …]
/linux-4.4.14/drivers/usb/gadget/legacy/
Dg_ffs.c120 int (*eth)(struct usb_configuration *c); member
127 .eth = bind_rndis_config,
133 .eth = eth_bind_config,
500 if (gc->eth) { in gfs_do_config()
501 ret = gc->eth(c); in gfs_do_config()
/linux-4.4.14/net/core/
Dnetpoll.c384 struct ethhdr *eth; in netpoll_send_udp() local
438 eth = (struct ethhdr *) skb_push(skb, ETH_HLEN); in netpoll_send_udp()
440 skb->protocol = eth->h_proto = htons(ETH_P_IPV6); in netpoll_send_udp()
467 eth = (struct ethhdr *) skb_push(skb, ETH_HLEN); in netpoll_send_udp()
469 skb->protocol = eth->h_proto = htons(ETH_P_IP); in netpoll_send_udp()
472 ether_addr_copy(eth->h_source, np->dev->dev_addr); in netpoll_send_udp()
473 ether_addr_copy(eth->h_dest, np->remote_mac); in netpoll_send_udp()
Dflow_dissector.c159 struct ethhdr *eth = eth_hdr(skb); in __skb_flow_dissect() local
165 memcpy(key_eth_addrs, &eth->h_dest, sizeof(*key_eth_addrs)); in __skb_flow_dissect()
392 const struct ethhdr *eth; in __skb_flow_dissect() local
395 eth = __skb_header_pointer(skb, nhoff, in __skb_flow_dissect()
398 if (!eth) in __skb_flow_dissect()
400 proto = eth->h_proto; in __skb_flow_dissect()
401 nhoff += sizeof(*eth); in __skb_flow_dissect()
Dpktgen.c2645 struct ethhdr *eth; in process_ipsec() local
2667 eth = (struct ethhdr *)skb_push(skb, ETH_HLEN); in process_ipsec()
2668 memcpy(eth, pkt_dev->hh, 2 * ETH_ALEN); in process_ipsec()
2669 eth->h_proto = protocol; in process_ipsec()
2801 __u8 *eth; in fill_packet_ipv4() local
2837 eth = (__u8 *) skb_push(skb, 14); in fill_packet_ipv4()
2868 memcpy(eth, pkt_dev->hh, 12); in fill_packet_ipv4()
2869 *(__be16 *) & eth[12] = protocol; in fill_packet_ipv4()
2930 __u8 *eth; in fill_packet_ipv6() local
2964 eth = (__u8 *) skb_push(skb, 14); in fill_packet_ipv6()
[all …]
Ddev.c2479 struct ethhdr *eth; in skb_network_protocol() local
2484 eth = (struct ethhdr *)skb_mac_header(skb); in skb_network_protocol()
2485 type = eth->h_proto; in skb_network_protocol()
4435 const struct ethhdr *eth; in napi_frags_skb() local
4436 unsigned int hlen = sizeof(*eth); in napi_frags_skb()
4443 eth = skb_gro_header_fast(skb, 0); in napi_frags_skb()
4445 eth = skb_gro_header_slow(skb, hlen, 0); in napi_frags_skb()
4446 if (unlikely(!eth)) { in napi_frags_skb()
4462 skb->protocol = eth->h_proto; in napi_frags_skb()
/linux-4.4.14/arch/arm/boot/dts/
Dimx1-apf9328.dts62 eth: eth@4,c00000 { label
Dspear1310.dtsi140 gmac1: eth@5c400000 {
149 gmac2: eth@5c500000 {
158 gmac3: eth@5c600000 {
167 gmac4: eth@5c700000 {
Dorion5x.dtsi179 eth: ethernet-controller@72000 { label
180 compatible = "marvell,orion-eth";
188 compatible = "marvell,orion-eth-port";
Dkirkwood.dtsi313 compatible = "marvell,kirkwood-eth";
322 compatible = "marvell,kirkwood-eth-port";
344 compatible = "marvell,kirkwood-eth";
355 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",
Dspear320-evb.dts93 gmac: eth@e0800000 {
Dspear3xx.dtsi55 gmac: eth@e0800000 {
Dspear310-evb.dts97 gmac: eth@e0800000 {
Dr8a7794-silk.dts56 renesas,function = "eth";
Dspear300-evb.dts78 gmac: eth@e0800000 {
Dorion5x-rd88f5182-nas.dts99 &eth {
Ddove.dtsi342 eth: ethernet-ctrl@72000 { label
343 compatible = "marvell,orion-eth";
352 compatible = "marvell,orion-eth-port";
Dorion5x-lacie-ethernet-disk-mini-v2.dts111 &eth {
Dorion5x-maxtor-shared-storage-2.dts92 &eth {
Dberlin2cd.dtsi141 compatible = "marvell,pxa168-eth";
159 compatible = "marvell,pxa168-eth";
Dr8a7791-porter.dts95 renesas,function = "eth";
Dberlin2.dtsi156 compatible = "marvell,pxa168-eth";
179 compatible = "marvell,pxa168-eth";
Dorion5x-lacie-d2-network.dts138 &eth {
Dr8a7791-henninger.dts96 renesas,function = "eth";
Domap3-lilly-dbb056.dts133 <7 0 0x15000000 0x01000000>; /* eth assigend by COM a83x */
Domap4-var-om44customboard.dtsi200 eth@0 {
Domap4-sdp.dts28 vdd_eth: fixedregulator-vdd-eth {
452 eth@0 {
Dlpc32xx.dtsi83 compatible = "nxp,lpc-eth";
Dqcom-msm8960-cdp.dts281 eth@0 {
Dspear13xx.dtsi156 gmac0: eth@e2000000 {
Ddove-sbc-a510.dts100 &eth { status = "disabled"; };
Dorion5x-linkstation-lswtgl.dts239 &eth {
Drk3288-evb.dtsi296 eth_phy_pwr: eth-phy-pwr {
Dorion5x-lswsgl.dts208 &eth {
Dspear1340-evb.dts166 gmac0: eth@e2000000 {
Dr8a7790-lager.dts306 renesas,function = "eth";
Dr8a7791-koelsch.dts345 renesas,function = "eth";
Datlas7.dtsi1337 gmac: eth@180b0000 {
1338 compatible = "snps, dwc-eth-qos";
Dberlin2q.dtsi207 compatible = "marvell,pxa168-eth";
/linux-4.4.14/drivers/net/wireless/ath/wil6210/
Dtxrx.c563 struct ethhdr *eth = (void *)skb->data; in wil_netif_rx_any() local
567 int mcast = is_multicast_ether_addr(eth->h_dest); in wil_netif_rx_any()
595 int xmit_cid = wil_find_cid(wil, eth->h_dest); in wil_netif_rx_any()
898 struct ethhdr *eth = (void *)skb->data; in wil_find_tx_ucast() local
899 int cid = wil_find_cid(wil, eth->h_dest); in wil_find_tx_ucast()
913 __func__, eth->h_dest, i); in wil_find_tx_ucast()
995 struct ethhdr *eth = (void *)skb->data; in wil_set_da_for_vring() local
998 ether_addr_copy(eth->h_dest, wil->sta[cid].addr); in wil_set_da_for_vring()
1008 struct ethhdr *eth = (void *)skb->data; in wil_find_tx_bcast_2() local
1009 char *src = eth->h_source; in wil_find_tx_bcast_2()
[all …]
Dwmi.c532 struct ethhdr *eth; in wmi_evt_eapol_rx() local
554 eth = (struct ethhdr *)skb_put(skb, ETH_HLEN); in wmi_evt_eapol_rx()
555 ether_addr_copy(eth->h_dest, ndev->dev_addr); in wmi_evt_eapol_rx()
556 ether_addr_copy(eth->h_source, evt->src_mac); in wmi_evt_eapol_rx()
557 eth->h_proto = cpu_to_be16(ETH_P_PAE); in wmi_evt_eapol_rx()
/linux-4.4.14/drivers/net/fjes/
Dfjes_main.c592 struct ethhdr *eth; in fjes_xmit_frame() local
603 eth = (struct ethhdr *)skb->data; in fjes_xmit_frame()
611 if (is_multicast_ether_addr(eth->h_dest)) { in fjes_xmit_frame()
615 } else if (is_local_ether_addr(eth->h_dest)) { in fjes_xmit_frame()
616 dest_epid = eth->h_dest[ETH_ALEN - 1]; in fjes_xmit_frame()
619 if ((eth->h_dest[0] == 0x02) && in fjes_xmit_frame()
620 (0x00 == (eth->h_dest[1] | eth->h_dest[2] | in fjes_xmit_frame()
621 eth->h_dest[3] | eth->h_dest[4])) && in fjes_xmit_frame()
/linux-4.4.14/Documentation/devicetree/bindings/clock/st/
Dst,flexgen.txt113 "clk-eth-phy",
114 "clk-eth-ref-phyclk",
/linux-4.4.14/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.4.14/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";
/linux-4.4.14/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.4.14/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.4.14/drivers/usb/gadget/function/
Df_subset.c457 struct f_gether *eth; in geth_free() local
459 eth = func_to_geth(f); in geth_free()
460 kfree(eth); in geth_free()
/linux-4.4.14/include/uapi/linux/
Dif_arcnet.h81 struct ethhdr eth; /* standard ethernet header (yuck!) */ member
/linux-4.4.14/arch/xtensa/platforms/iss/
Dnetwork.c681 struct iss_net_init *eth; in iss_net_init() local
682 eth = list_entry(ele, struct iss_net_init, list); in iss_net_init()
683 iss_net_configure(eth->index, eth->init); in iss_net_init()
/linux-4.4.14/Documentation/networking/
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
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()
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.txt1181 The file name must be prefixed with "ifcfg-eth" and suffixed
2780 # ifenslave bond0 eth...
/linux-4.4.14/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.4.14/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.4.14/drivers/net/hamradio/
Dbpqether.c182 struct ethhdr *eth; in bpq_rcv() local
207 eth = eth_hdr(skb); in bpq_rcv()
210 !ether_addr_equal(eth->h_source, bpq->acpt_addr)) in bpq_rcv()
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx5/core/
Den_rx.c99 struct ethhdr *eth = (struct ethhdr *)(skb->data); in mlx5e_lro_update_hdr() local
110 if (eth->h_proto == htons(ETH_P_IP)) { in mlx5e_lro_update_hdr()
Den.h518 struct mlx5_wqe_eth_seg eth; member
Den_tx.c165 struct mlx5_wqe_eth_seg *eseg = &wqe->eth; in mlx5e_sq_xmit()
/linux-4.4.14/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.4.14/drivers/net/ethernet/qlogic/qed/
Dqed_hw.h254 } eth; member
Dqed.h437 struct qed_eth_cb_ops *eth; member
Dqed_hw.c767 pq_id = p_params->eth.tc; in qed_get_qm_pq()
Dqed_l2.c717 p_ramrod->tc = p_pq_params->eth.tc; in qed_sp_eth_txq_start_ramrod()
1266 cdev->protocol_ops.eth = ops; in qed_register_eth_ops()
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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()
DKconfig442 Choose this option to support the "usb-eth" networking driver
482 protocol. Only the "eth-fd" or "net_fd" drivers in these devices
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmfmac/
Dfweh.c67 struct ethhdr eth; member
475 memcpy(event->ifaddr, event_packet->eth.h_dest, ETH_ALEN); in brcmf_fweh_process_event()
/linux-4.4.14/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.4.14/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.4.14/drivers/net/ethernet/
DMakefile56 obj-$(CONFIG_NET_NETX) += netx-eth.o
DKconfig135 will be called netx-eth.
/linux-4.4.14/drivers/net/ethernet/brocade/bna/
Dbfa_defs_cna.h109 struct bfa_port_eth_stats eth; member
/linux-4.4.14/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c104 I40E_PF_STAT("rx_bytes", stats.eth.rx_bytes),
105 I40E_PF_STAT("tx_bytes", stats.eth.tx_bytes),
106 I40E_PF_STAT("rx_unicast", stats.eth.rx_unicast),
107 I40E_PF_STAT("tx_unicast", stats.eth.tx_unicast),
108 I40E_PF_STAT("rx_multicast", stats.eth.rx_multicast),
109 I40E_PF_STAT("tx_multicast", stats.eth.tx_multicast),
110 I40E_PF_STAT("rx_broadcast", stats.eth.rx_broadcast),
111 I40E_PF_STAT("tx_broadcast", stats.eth.tx_broadcast),
112 I40E_PF_STAT("tx_errors", stats.eth.tx_errors),
113 I40E_PF_STAT("rx_dropped", stats.eth.rx_discards),
Di40e_main.c979 &osd->eth.rx_bytes, &nsd->eth.rx_bytes); in i40e_update_pf_stats()
983 &osd->eth.tx_bytes, &nsd->eth.tx_bytes); in i40e_update_pf_stats()
986 &osd->eth.rx_discards, in i40e_update_pf_stats()
987 &nsd->eth.rx_discards); in i40e_update_pf_stats()
991 &osd->eth.rx_unicast, in i40e_update_pf_stats()
992 &nsd->eth.rx_unicast); in i40e_update_pf_stats()
996 &osd->eth.rx_multicast, in i40e_update_pf_stats()
997 &nsd->eth.rx_multicast); in i40e_update_pf_stats()
1001 &osd->eth.rx_broadcast, in i40e_update_pf_stats()
1002 &nsd->eth.rx_broadcast); in i40e_update_pf_stats()
[all …]
Di40e_type.h1183 struct i40e_eth_stats eth; member
/linux-4.4.14/drivers/staging/rtl8192e/
Drtllib_tx.c252 struct ethhdr *eth; in rtllib_classify() local
255 eth = (struct ethhdr *)skb->data; in rtllib_classify()
256 if (eth->h_proto != htons(ETH_P_IP)) in rtllib_classify()
/linux-4.4.14/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.4.14/include/rdma/
Dib_pack.h235 struct ib_unpacked_eth eth; member
Dib_verbs.h1481 struct ib_flow_spec_eth eth; member
/linux-4.4.14/arch/mips/include/asm/ip32/
Dmace.h353 struct mace_ethernet eth; member
/linux-4.4.14/drivers/net/wireless/iwlwifi/mvm/
Dd3.c395 struct ethhdr eth; in iwl_mvm_build_tcp_packet() member
403 pkt->eth.h_proto = cpu_to_be16(ETH_P_IP), in iwl_mvm_build_tcp_packet()
412 memcpy(pkt->eth.h_dest, tcp->dst_mac, ETH_ALEN); in iwl_mvm_build_tcp_packet()
413 memcpy(pkt->eth.h_source, vif->addr, ETH_ALEN); in iwl_mvm_build_tcp_packet()
426 memcpy(pkt->eth.h_dest, vif->addr, ETH_ALEN); in iwl_mvm_build_tcp_packet()
427 memcpy(pkt->eth.h_source, tcp->dst_mac, ETH_ALEN); in iwl_mvm_build_tcp_packet()
/linux-4.4.14/Documentation/scsi/
Dbnx2fc.txt30 d. Edit all the cfg-eth files to set "no" for DCB_REQUIRED** field, and
/linux-4.4.14/drivers/net/xen-netback/
Dinterface.c175 struct ethhdr *eth = (struct ethhdr *)skb->data; in xenvif_start_xmit() local
177 if (!xenvif_mcast_match(vif, eth->h_dest)) in xenvif_start_xmit()
/linux-4.4.14/drivers/staging/rtl8723au/os_dep/
Dos_intfs.c313 struct ethhdr *eth = (struct ethhdr *)skb->data; in rtw_recv_select_queue23a() local
315 u16 eth_type = get_unaligned_be16(&eth->h_proto); in rtw_recv_select_queue23a()
/linux-4.4.14/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.4.14/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.4.14/drivers/s390/char/
Ddefkeymap.map16 keycode 12 = nul eth
/linux-4.4.14/include/linux/mlx4/
Ddevice.h788 struct mlx4_eth_av eth; member
1207 struct mlx4_spec_eth eth; member
1314 struct mlx4_net_trans_rule_hw_eth eth; member
/linux-4.4.14/drivers/staging/unisys/visornic/
Dvisornic_main.c1163 struct ethhdr *eth; in visornic_rx() local
1289 eth = eth_hdr(skb); in visornic_rx()
1310 if (ether_addr_equal(eth->h_dest, in visornic_rx()
1328 netdev->name, eth->h_dest, netdev->dev_addr); in visornic_rx()
/linux-4.4.14/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.4.14/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_cmn.c3802 struct ethhdr *eth; in bnx2x_start_xmit() local
3851 eth = (struct ethhdr *)skb->data; in bnx2x_start_xmit()
3854 if (unlikely(is_multicast_ether_addr(eth->h_dest))) { in bnx2x_start_xmit()
3855 if (is_broadcast_ether_addr(eth->h_dest)) in bnx2x_start_xmit()
3949 cpu_to_le16(ntohs(eth->h_proto)); in bnx2x_start_xmit()
4021 eth->h_source); in bnx2x_start_xmit()
4026 eth->h_dest); in bnx2x_start_xmit()
4033 eth->h_dest); in bnx2x_start_xmit()
4041 eth->h_source); in bnx2x_start_xmit()
Dbnx2x.h1186 struct eth_context eth; member
Dbnx2x_sriov.c2073 q->cxt = &((base_cxt + i)->eth); in bnx2x_vf_acquire()
Dbnx2x_main.c8735 &bp->context[cxt_index].vcxt[cxt_offset].eth; in bnx2x_pf_q_prep_init()
14426 vcxt[cxt_offset].eth, in bnx2x_cnic_sp_post()
/linux-4.4.14/drivers/net/ethernet/amd/xgbe/
Dxgbe-drv.c2155 struct ethhdr *eth = (struct ethhdr *)skb->data; in xgbe_print_pkt() local
2165 netdev_dbg(netdev, "Dst MAC addr: %pM\n", eth->h_dest); in xgbe_print_pkt()
2166 netdev_dbg(netdev, "Src MAC addr: %pM\n", eth->h_source); in xgbe_print_pkt()
2167 netdev_dbg(netdev, "Protocol: %#06hx\n", ntohs(eth->h_proto)); in xgbe_print_pkt()
/linux-4.4.14/drivers/net/wireless/ath/ath10k/
Dhtt_rx.c1178 struct ethhdr *eth; in ath10k_htt_rx_h_undecap_eth() local
1194 eth = (struct ethhdr *)msdu->data; in ath10k_htt_rx_h_undecap_eth()
1195 ether_addr_copy(da, eth->h_dest); in ath10k_htt_rx_h_undecap_eth()
1196 ether_addr_copy(sa, eth->h_source); in ath10k_htt_rx_h_undecap_eth()
Dmac.c3236 struct ethhdr *eth; in ath10k_tx_h_8023() local
3251 skb_push(skb, sizeof(*eth)); in ath10k_tx_h_8023()
3253 eth = (void *)skb->data; in ath10k_tx_h_8023()
3254 ether_addr_copy(eth->h_dest, da); in ath10k_tx_h_8023()
3255 ether_addr_copy(eth->h_source, sa); in ath10k_tx_h_8023()
3256 eth->h_proto = type; in ath10k_tx_h_8023()
/linux-4.4.14/Documentation/device-mapper/
Dswitch.txt25 session is connected to an eth port on a single member. Data to a LUN
/linux-4.4.14/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.4.14/drivers/net/ethernet/apm/xgene/
Dxgene_enet_main.c105 const struct ethhdr *eth = data; in xgene_enet_hdr_len() local
107 return (eth->h_proto == htons(ETH_P_8021Q)) ? VLAN_ETH_HLEN : ETH_HLEN; in xgene_enet_hdr_len()
/linux-4.4.14/drivers/net/ethernet/intel/i40evf/
Di40e_type.h1147 struct i40e_eth_stats eth; member
/linux-4.4.14/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.4.14/net/mac80211/
Dtx.c2701 struct ethhdr eth; in ieee80211_xmit_fast() local
2758 memcpy(&eth, skb->data, ETH_HLEN - 2); in ieee80211_xmit_fast()
2761 memcpy(skb->data + fast_tx->da_offs, eth.h_dest, ETH_ALEN); in ieee80211_xmit_fast()
2762 memcpy(skb->data + fast_tx->sa_offs, eth.h_source, ETH_ALEN); in ieee80211_xmit_fast()
/linux-4.4.14/drivers/net/vmxnet3/
Dvmxnet3_drv.c1191 struct ethhdr *eth; in vmxnet3_get_hdr_len() member
1202 hdr.eth = eth_hdr(skb); in vmxnet3_get_hdr_len()
1204 BUG_ON(hdr.eth->h_proto != htons(ETH_P_IP)); in vmxnet3_get_hdr_len()
1210 BUG_ON(hdr.eth->h_proto != htons(ETH_P_IPV6)); in vmxnet3_get_hdr_len()
/linux-4.4.14/Documentation/isdn/
DREADME420 which starts with "eth". The number of "eth"-interfaces is limited by
/linux-4.4.14/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.4.14/drivers/pinctrl/
Dpinctrl-pistachio.c596 FUNCTION(eth),
/linux-4.4.14/drivers/net/wireless/
Dairo.c1451 static int decapsulate(struct airo_info *ai, MICBuffer *mic, etherHead *eth, u16 payLen) in decapsulate() argument
1463 if (memcmp ((u8*)eth + 14, micsnap, sizeof(micsnap)) == 0) { in decapsulate()
1491 int mcast = eth->da[0] & 1; in decapsulate()
1507 emmh32_update(&context->seed, eth->da, ETH_ALEN*2); in decapsulate()
1510 emmh32_update(&context->seed, (u8 *)(eth + 1),payLen); in decapsulate()
/linux-4.4.14/Documentation/networking/dsa/
Ddsa.txt114 net/ethernet/eth.c:
/linux-4.4.14/drivers/net/ethernet/broadcom/bnxt/
Dbnxt.c5348 struct ethhdr *eth = (struct ethhdr *)skb_mac_header(skb); in bnxt_rx_flow_steer() local
5372 memcpy(new_fltr->src_mac_addr, eth->h_source, ETH_ALEN); in bnxt_rx_flow_steer()
/linux-4.4.14/drivers/net/ethernet/broadcom/
Dcnic_defs.h3665 struct xstorm_fcoe_eth_context_section eth; member
/linux-4.4.14/drivers/pinctrl/sh-pfc/
Dpfc-r8a7794.c3414 SH_PFC_FUNCTION(eth),
Dpfc-r8a7791.c5089 SH_PFC_FUNCTION(eth),
Dpfc-r8a7790.c4696 SH_PFC_FUNCTION(eth),
/linux-4.4.14/Documentation/
Ddevices.txt872 accessible as a standard networking "eth" device.
/linux-4.4.14/
DMAINTAINERS5698 F: drivers/net/ethernet/sgi/ioc3-eth.c