/drivers/scsi/fnic/ |
D | fnic_fcs.c | 993 struct ethhdr *eth_hdr; in fnic_eth_send() local 999 eth_hdr = (struct ethhdr *)skb_mac_header(skb); in fnic_eth_send() 1001 sizeof(*vlan_hdr) - sizeof(*eth_hdr)); in fnic_eth_send() 1002 memcpy(vlan_hdr, eth_hdr, 2 * ETH_ALEN); in fnic_eth_send() 1004 vlan_hdr->h_vlan_encapsulated_proto = eth_hdr->h_proto; in fnic_eth_send() 1007 FNIC_FC_SEND|0x80, (char *)eth_hdr, skb->len)) != 0) { in fnic_eth_send() 1050 struct ethhdr *eth_hdr; in fnic_send_frame() local 1068 eth_hdr = (struct ethhdr *)vlan_hdr; in fnic_send_frame() 1074 eth_hdr_len = sizeof(*eth_hdr) + sizeof(*fcoe_hdr); in fnic_send_frame() 1075 eth_hdr = (struct ethhdr *)skb_push(skb, eth_hdr_len); in fnic_send_frame() [all …]
|
/drivers/net/wimax/i2400m/ |
D | netdev.c | 442 struct ethhdr *eth_hdr = _eth_hdr; in i2400m_rx_fake_eth_header() local 444 memcpy(eth_hdr->h_dest, net_dev->dev_addr, sizeof(eth_hdr->h_dest)); in i2400m_rx_fake_eth_header() 445 memcpy(eth_hdr->h_source, i2400m->src_mac_addr, in i2400m_rx_fake_eth_header() 446 sizeof(eth_hdr->h_source)); in i2400m_rx_fake_eth_header() 447 eth_hdr->h_proto = protocol; in i2400m_rx_fake_eth_header()
|
/drivers/staging/ks7010/ |
D | ks_hostif.c | 327 struct ether_hdr *eth_hdr; in hostif_data_indication() local 348 eth_hdr = (struct ether_hdr *)(priv->rxp); in hostif_data_indication() 349 eth_proto = ntohs(eth_hdr->h_proto); in hostif_data_indication() 353 if (!memcmp(&priv->eth_addr[0], eth_hdr->h_source, ETH_ALEN)) { in hostif_data_indication() 357 eth_hdr->h_source[0], eth_hdr->h_source[1], in hostif_data_indication() 358 eth_hdr->h_source[2], eth_hdr->h_source[3], in hostif_data_indication() 359 eth_hdr->h_source[4], eth_hdr->h_source[5]); in hostif_data_indication() 366 if (memcmp(ð_hdr->h_source[0], &priv->eth_addr[0], ETH_ALEN)) { /* source address check */ in hostif_data_indication() 367 if (eth_hdr->h_dest_snap != eth_hdr->h_source_snap) { in hostif_data_indication() 425 eth_hdr-> in hostif_data_indication() [all …]
|
/drivers/net/wireless/ath/ath6kl/ |
D | wmi.c | 163 struct ethhdr *eth_hdr; in ath6kl_wmi_dix_2_dot3() local 176 eth_hdr = (struct ethhdr *) skb->data; in ath6kl_wmi_dix_2_dot3() 177 type = eth_hdr->h_proto; in ath6kl_wmi_dix_2_dot3() 185 new_len = skb->len - sizeof(*eth_hdr) + sizeof(*llc_hdr); in ath6kl_wmi_dix_2_dot3() 190 eth_hdr->h_proto = cpu_to_be16(new_len); in ath6kl_wmi_dix_2_dot3() 192 memcpy(datap, eth_hdr, sizeof(*eth_hdr)); in ath6kl_wmi_dix_2_dot3() 194 llc_hdr = (struct ath6kl_llc_snap_hdr *)(datap + sizeof(*eth_hdr)); in ath6kl_wmi_dix_2_dot3() 392 struct ethhdr eth_hdr; in ath6kl_wmi_dot11_hdr_remove() local 419 memset(ð_hdr, 0, sizeof(eth_hdr)); in ath6kl_wmi_dot11_hdr_remove() 420 eth_hdr.h_proto = llc_hdr->eth_type; in ath6kl_wmi_dot11_hdr_remove() [all …]
|
D | txrx.c | 46 struct ethhdr *eth_hdr; in ath6kl_ibss_map_epid() local 52 eth_hdr = (struct ethhdr *) (datap + sizeof(struct wmi_data_hdr)); in ath6kl_ibss_map_epid() 54 if (is_multicast_ether_addr(eth_hdr->h_dest)) in ath6kl_ibss_map_epid() 58 if (memcmp(eth_hdr->h_dest, ar->node_map[i].mac_addr, in ath6kl_ibss_map_epid() 76 memcpy(ar->node_map[ep_map].mac_addr, eth_hdr->h_dest, ETH_ALEN); in ath6kl_ibss_map_epid()
|
/drivers/net/ipvlan/ |
D | ipvlan_core.c | 210 ethh = eth_hdr(skb); in ipvlan_process_multicast() 302 if (!ether_addr_equal_64bits(eth_hdr(skb)->h_dest, in ipvlan_rcv_frame() 443 struct ethhdr *ethh = eth_hdr(skb); in ipvlan_process_outbound() 520 struct ethhdr *eth = eth_hdr(skb); in ipvlan_xmit_mode_l2() 582 struct ethhdr *eth = eth_hdr(skb); in ipvlan_external_frame() 625 struct ethhdr *eth = eth_hdr(skb); in ipvlan_handle_mode_l2()
|
/drivers/net/ethernet/mellanox/mlxsw/ |
D | core.c | 146 MLXSW_ITEM_BUF(emad, eth_hdr, dmac, 0x00, 6); 152 MLXSW_ITEM_BUF(emad, eth_hdr, smac, 0x06, 6); 158 MLXSW_ITEM32(emad, eth_hdr, ethertype, 0x0C, 16, 16); 164 MLXSW_ITEM32(emad, eth_hdr, mlx_proto, 0x0C, 8, 8); 170 MLXSW_ITEM32(emad, eth_hdr, ver, 0x0C, 4, 4); 317 char *eth_hdr = skb_push(skb, MLXSW_EMAD_ETH_HDR_LEN); in mlxsw_emad_construct_eth_hdr() local 319 mlxsw_emad_eth_hdr_dmac_memcpy_to(eth_hdr, MLXSW_EMAD_EH_DMAC); in mlxsw_emad_construct_eth_hdr() 320 mlxsw_emad_eth_hdr_smac_memcpy_to(eth_hdr, MLXSW_EMAD_EH_SMAC); in mlxsw_emad_construct_eth_hdr() 321 mlxsw_emad_eth_hdr_ethertype_set(eth_hdr, MLXSW_EMAD_EH_ETHERTYPE); in mlxsw_emad_construct_eth_hdr() 322 mlxsw_emad_eth_hdr_mlx_proto_set(eth_hdr, MLXSW_EMAD_EH_MLX_PROTO); in mlxsw_emad_construct_eth_hdr() [all …]
|
/drivers/net/usb/ |
D | cdc_mbim.c | 249 is_ip = is_ip_proto(eth_hdr(skb)->h_proto); in cdc_mbim_tx_fixup() 396 eth_hdr(skb)->h_proto = proto; in cdc_mbim_process_dgram() 397 eth_zero_addr(eth_hdr(skb)->h_source); in cdc_mbim_process_dgram() 398 memcpy(eth_hdr(skb)->h_dest, dev->net->dev_addr, ETH_ALEN); in cdc_mbim_process_dgram()
|
D | sierra_net.c | 243 skb->protocol = eth_hdr(skb)->h_proto; in check_ethip_packet() 866 if (eth_hdr(skb)->h_proto != cpu_to_be16(ETH_P_IPV6)) in sierra_net_rx_fixup() 867 eth_hdr(skb)->h_proto = cpu_to_be16(ETH_P_IP); in sierra_net_rx_fixup() 868 eth_zero_addr(eth_hdr(skb)->h_source); in sierra_net_rx_fixup() 869 memcpy(eth_hdr(skb)->h_dest, dev->net->dev_addr, ETH_ALEN); in sierra_net_rx_fixup()
|
D | qmi_wwan.c | 220 eth_hdr(skb)->h_proto = proto; in qmi_wwan_rx_fixup() 221 eth_zero_addr(eth_hdr(skb)->h_source); in qmi_wwan_rx_fixup() 223 memcpy(eth_hdr(skb)->h_dest, dev->net->dev_addr, ETH_ALEN); in qmi_wwan_rx_fixup()
|
D | cdc_ether.c | 458 ether_addr_copy(eth_hdr(skb)->h_dest, dev->net->dev_addr); in usbnet_cdc_zte_rx_fixup()
|
/drivers/net/ |
D | vxlan.c | 1229 skb_postpull_rcsum(skb, eth_hdr(skb), ETH_HLEN); in vxlan_set_mac() 1232 if (ether_addr_equal(eth_hdr(skb)->h_source, vxlan->dev->dev_addr)) in vxlan_set_mac() 1247 vxlan_snoop(skb->dev, &saddr, eth_hdr(skb)->h_source)) in vxlan_set_mac() 1510 daddr = eth_hdr(request)->h_source; in vxlan_na_create() 1520 ether_addr_copy(eth_hdr(reply)->h_dest, daddr); in vxlan_na_create() 1521 ether_addr_copy(eth_hdr(reply)->h_source, n->ha); in vxlan_na_create() 1522 eth_hdr(reply)->h_proto = htons(ETH_P_IPV6); in vxlan_na_create() 1644 if (is_multicast_ether_addr(eth_hdr(skb)->h_dest)) in route_shortcircuit() 1648 switch (ntohs(eth_hdr(skb)->h_proto)) { in route_shortcircuit() 1698 diff = !ether_addr_equal(eth_hdr(skb)->h_dest, n->ha); in route_shortcircuit() [all …]
|
D | macvlan.c | 237 const struct ethhdr *eth = eth_hdr(skb); in macvlan_broadcast() 413 const struct ethhdr *eth = eth_hdr(skb); in macvlan_handle_frame() 429 eth = eth_hdr(skb); in macvlan_handle_frame()
|
/drivers/infiniband/hw/ocrdma/ |
D | ocrdma_ah.c | 125 memcpy(&ah->av->eth_hdr, ð, eth_sz); in set_av_attr() 259 attr->sl = be16_to_cpu(av->eth_hdr.vlan_tag) >> 13; in ocrdma_query_ah()
|
/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_main.c | 704 struct ethhdr *eth_hdr; in fm10k_tx_encap_offload() local 723 eth_hdr = fm10k_port_is_vxlan(skb); in fm10k_tx_encap_offload() 726 eth_hdr = fm10k_gre_is_nvgre(skb); in fm10k_tx_encap_offload() 732 if (!eth_hdr) in fm10k_tx_encap_offload() 735 switch (eth_hdr->h_proto) { in fm10k_tx_encap_offload() 764 return eth_hdr->h_proto; in fm10k_tx_encap_offload()
|
/drivers/scsi/bnx2fc/ |
D | bnx2fc_fcoe.c | 381 eh = eth_hdr(skb); in bnx2fc_xmit() 463 if (unlikely(eth_hdr(skb)->h_proto != htons(ETH_P_FCOE))) { in bnx2fc_rcv() 547 mac = eth_hdr(skb)->h_source; in bnx2fc_recv_frame() 548 dest_mac = eth_hdr(skb)->h_dest; in bnx2fc_recv_frame() 1090 struct ethhdr *eth_hdr; in bnx2fc_fip_send() local 1095 eth_hdr = (struct ethhdr *)skb_mac_header(skb); in bnx2fc_fip_send() 1101 eth_hdr->h_source, eth_hdr->h_dest); in bnx2fc_fip_send()
|
/drivers/net/wireless/marvell/mwifiex/ |
D | main.c | 764 struct ethhdr *eth_hdr = (struct ethhdr *)skb->data; in mwifiex_bypass_tx_queue() local 766 if (ntohs(eth_hdr->h_proto) == ETH_P_PAE || in mwifiex_bypass_tx_queue() 770 (ntohs(eth_hdr->h_proto) == ETH_P_TDLS))) { in mwifiex_bypass_tx_queue() 773 ntohs(eth_hdr->h_proto), in mwifiex_bypass_tx_queue()
|
D | wmm.c | 817 struct ethhdr *eth_hdr = (struct ethhdr *)skb->data; in mwifiex_wmm_add_buf_txqueue() local 820 memcpy(ra, eth_hdr->h_dest, ETH_ALEN); in mwifiex_wmm_add_buf_txqueue() 824 if (ntohs(eth_hdr->h_proto) == ETH_P_TDLS) in mwifiex_wmm_add_buf_txqueue()
|
/drivers/net/bonding/ |
D | bond_alb.c | 1291 struct ethhdr *eth_data = eth_hdr(skb); in bond_do_alb_xmit() 1330 eth_data = eth_hdr(skb); in bond_tlb_xmit() 1374 eth_data = eth_hdr(skb); in bond_alb_xmit()
|
/drivers/net/ethernet/altera/ |
D | altera_tse_main.c | 344 struct ethhdr *eth_hdr; in tse_rx_vlan() local 348 eth_hdr = (struct ethhdr *)skb->data; in tse_rx_vlan() 349 memmove(skb->data + VLAN_HLEN, eth_hdr, ETH_ALEN * 2); in tse_rx_vlan()
|
/drivers/net/hyperv/ |
D | netvsc_drv.c | 330 if ((eth_hdr(skb)->h_proto != htons(ETH_P_IP)) && in get_net_transport_info() 331 (eth_hdr(skb)->h_proto != htons(ETH_P_IPV6))) { in get_net_transport_info() 337 if ((eth_hdr(skb)->h_proto == htons(ETH_P_IP))) { in get_net_transport_info()
|
/drivers/net/hamradio/ |
D | bpqether.c | 207 eth = eth_hdr(skb); in bpq_rcv()
|
/drivers/net/ppp/ |
D | pppoe.c | 450 po = get_item(pn, ph->sid, eth_hdr(skb)->h_source, dev->ifindex); in pppoe_rcv() 504 po = get_item(pn, ph->sid, eth_hdr(skb)->h_source, dev->ifindex); in pppoe_disc_rcv()
|
/drivers/staging/wlan-ng/ |
D | p80211conv.c | 501 orinoco_spy_gather(wlandev, eth_hdr(skb)->h_source, in skb_p80211_to_ether()
|
/drivers/net/ethernet/intel/i40e/ |
D | i40e_fcoe.c | 227 if (eth_hdr(skb)->h_proto == htons(ETH_P_8021Q)) in i40e_fcoe_fc_frame_header() 1316 struct vlan_ethhdr *veth = (struct vlan_ethhdr *)eth_hdr(skb); in i40e_fcoe_set_skb_header()
|