Home
last modified time | relevance | path

Searched refs:eth_hdr (Results 1 – 25 of 72) sorted by relevance

123

/drivers/scsi/qedf/
A Dqedf_fip.c124 struct ethhdr *eth_hdr; in qedf_fip_send() local
137 eth_hdr = (struct ethhdr *)skb_mac_header(skb); in qedf_fip_send()
151 "dest=%pM op=%x sub=%x vlan=%04x.", eth_hdr->h_dest, op, sub, in qedf_fip_send()
170 struct ethhdr *eth_hdr; in qedf_fip_recv() local
186 eth_hdr = (struct ethhdr *)skb_mac_header(skb); in qedf_fip_recv()
193 skb, fiph, eth_hdr->h_source, eth_hdr->h_dest, op, in qedf_fip_recv()
199 if (!ether_addr_equal(eth_hdr->h_dest, qedf->mac) && in qedf_fip_recv()
200 !ether_addr_equal(eth_hdr->h_dest, fcoe_all_enode) && in qedf_fip_recv()
201 !ether_addr_equal(eth_hdr->h_dest, qedf->data_src_addr)) { in qedf_fip_recv()
204 op, eth_hdr->h_dest, qedf->mac, in qedf_fip_recv()
/drivers/net/ethernet/marvell/octeontx2/nic/
A Dotx2_flows.c845 if (eth_hdr->h_proto) { in otx2_prepare_flow_request()
846 memcpy(&pkt->etype, &eth_hdr->h_proto, in otx2_prepare_flow_request()
967 is_valid_ether_addr(eth_hdr->h_dest)) in otx2_is_flow_rule_dmacfilter()
1064 struct ethhdr *eth_hdr; in otx2_add_flow_with_pfmac() local
1082 otx2_dmacflt_add(pfvf, eth_hdr->h_dest, 0); in otx2_add_flow_with_pfmac()
1096 struct ethhdr *eth_hdr; in otx2_add_flow() local
1148 eth_hdr = &flow->flow_spec.h_u.ether_spec; in otx2_add_flow()
1239 struct ethhdr *eth_hdr; in otx2_update_rem_pfmac() local
1251 ether_addr_copy(eth_hdr->h_dest, in otx2_update_rem_pfmac()
1512 struct ethhdr *eth_hdr; in otx2_dmacflt_reinstall_flows() local
[all …]
/drivers/net/wireless/ath/ath6kl/
A Dwmi.c163 struct ethhdr *eth_hdr; in ath6kl_wmi_dix_2_dot3() local
177 type = eth_hdr->h_proto; in ath6kl_wmi_dix_2_dot3()
192 memcpy(datap, eth_hdr, sizeof(*eth_hdr)); in ath6kl_wmi_dix_2_dot3()
392 struct ethhdr eth_hdr; in ath6kl_wmi_dot11_hdr_remove() local
419 memset(&eth_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()
441 skb_push(skb, sizeof(eth_hdr)); in ath6kl_wmi_dot11_hdr_remove()
445 memcpy(datap, &eth_hdr, sizeof(eth_hdr)); in ath6kl_wmi_dot11_hdr_remove()
457 struct ethhdr eth_hdr; in ath6kl_wmi_dot3_2_dix() local
465 memcpy(&eth_hdr, datap, sizeof(eth_hdr)); in ath6kl_wmi_dot3_2_dix()
[all …]
A Dtxrx.c46 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/usb/
A Dsierra_net.c228 skb->protocol = eth_hdr(skb)->h_proto; in check_ethip_packet()
843 if (eth_hdr(skb)->h_proto != cpu_to_be16(ETH_P_IPV6)) in sierra_net_rx_fixup()
844 eth_hdr(skb)->h_proto = cpu_to_be16(ETH_P_IP); in sierra_net_rx_fixup()
845 eth_zero_addr(eth_hdr(skb)->h_source); in sierra_net_rx_fixup()
846 memcpy(eth_hdr(skb)->h_dest, dev->net->dev_addr, ETH_ALEN); in sierra_net_rx_fixup()
A Dcdc_mbim.c250 is_ip = is_ip_proto(eth_hdr(skb)->h_proto); in cdc_mbim_tx_fixup()
397 eth_hdr(skb)->h_proto = proto; in cdc_mbim_process_dgram()
398 eth_zero_addr(eth_hdr(skb)->h_source); in cdc_mbim_process_dgram()
399 memcpy(eth_hdr(skb)->h_dest, dev->net->dev_addr, ETH_ALEN); in cdc_mbim_process_dgram()
A Dqmi_wwan.c607 eth_hdr(skb)->h_proto = proto; in qmi_wwan_rx_fixup()
608 eth_zero_addr(eth_hdr(skb)->h_source); in qmi_wwan_rx_fixup()
610 memcpy(eth_hdr(skb)->h_dest, dev->net->dev_addr, ETH_ALEN); in qmi_wwan_rx_fixup()
/drivers/net/wireless/mediatek/mt76/
A Dmt76_connac_mac.c955 struct ethhdr *eth_hdr = (struct ethhdr *)(skb->data + hdr_offset); in mt76_connac2_reverse_frag0_hdr_trans() local
984 ether_addr_copy(hdr.addr3, eth_hdr->h_source); in mt76_connac2_reverse_frag0_hdr_trans()
987 ether_addr_copy(hdr.addr3, eth_hdr->h_dest); in mt76_connac2_reverse_frag0_hdr_trans()
990 ether_addr_copy(hdr.addr3, eth_hdr->h_dest); in mt76_connac2_reverse_frag0_hdr_trans()
991 ether_addr_copy(hdr.addr4, eth_hdr->h_source); in mt76_connac2_reverse_frag0_hdr_trans()
998 if (eth_hdr->h_proto == cpu_to_be16(ETH_P_AARP) || in mt76_connac2_reverse_frag0_hdr_trans()
999 eth_hdr->h_proto == cpu_to_be16(ETH_P_IPX)) in mt76_connac2_reverse_frag0_hdr_trans()
1001 else if (be16_to_cpu(eth_hdr->h_proto) >= ETH_P_802_3_MIN) in mt76_connac2_reverse_frag0_hdr_trans()
/drivers/net/ipvlan/
A Dipvlan_core.c251 ethh = eth_hdr(skb); in ipvlan_process_multicast()
536 struct ethhdr *ethh = eth_hdr(skb); in ipvlan_process_outbound()
694 struct ethhdr *eth = eth_hdr(skb); in ipvlan_external_frame()
737 struct ethhdr *eth = eth_hdr(skb); in ipvlan_handle_mode_l2()
/drivers/infiniband/hw/ocrdma/
A Docrdma_ah.c126 memcpy(&ah->av->eth_hdr, &eth, eth_sz); in set_av_attr()
237 rdma_ah_set_sl(attr, be16_to_cpu(av->eth_hdr.vlan_tag) >> 13); in ocrdma_query_ah()
/drivers/net/wireless/mediatek/mt76/mt7925/
A Dmac.c171 struct ethhdr *eth_hdr = (struct ethhdr *)(skb->data + hdr_gap); in mt7925_reverse_frag0_hdr_trans() local
206 ether_addr_copy(hdr.addr3, eth_hdr->h_source); in mt7925_reverse_frag0_hdr_trans()
209 ether_addr_copy(hdr.addr3, eth_hdr->h_dest); in mt7925_reverse_frag0_hdr_trans()
212 ether_addr_copy(hdr.addr3, eth_hdr->h_dest); in mt7925_reverse_frag0_hdr_trans()
213 ether_addr_copy(hdr.addr4, eth_hdr->h_source); in mt7925_reverse_frag0_hdr_trans()
220 if (eth_hdr->h_proto == cpu_to_be16(ETH_P_AARP) || in mt7925_reverse_frag0_hdr_trans()
221 eth_hdr->h_proto == cpu_to_be16(ETH_P_IPX)) in mt7925_reverse_frag0_hdr_trans()
223 else if (be16_to_cpu(eth_hdr->h_proto) >= ETH_P_802_3_MIN) in mt7925_reverse_frag0_hdr_trans()
/drivers/net/ethernet/intel/fm10k/
A Dfm10k_main.c679 struct ethhdr *eth_hdr; in fm10k_tx_encap_offload() local
698 eth_hdr = fm10k_port_is_vxlan(skb); in fm10k_tx_encap_offload()
701 eth_hdr = fm10k_gre_is_nvgre(skb); in fm10k_tx_encap_offload()
707 if (!eth_hdr) in fm10k_tx_encap_offload()
710 switch (eth_hdr->h_proto) { in fm10k_tx_encap_offload()
739 return eth_hdr->h_proto; in fm10k_tx_encap_offload()
/drivers/net/wireless/marvell/mwifiex/
A Dmain.c768 struct ethhdr *eth_hdr = (struct ethhdr *)skb->data; in mwifiex_bypass_tx_queue() local
770 if (ntohs(eth_hdr->h_proto) == ETH_P_PAE || in mwifiex_bypass_tx_queue()
774 (ntohs(eth_hdr->h_proto) == ETH_P_TDLS))) { in mwifiex_bypass_tx_queue()
777 ntohs(eth_hdr->h_proto), in mwifiex_bypass_tx_queue()
779 if (eth_hdr->h_proto == htons(ETH_P_PAE)) in mwifiex_bypass_tx_queue()
782 eth_hdr->h_dest); in mwifiex_bypass_tx_queue()
A Dwmm.c817 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/ethernet/mellanox/mlxsw/
A Dcore.c286 MLXSW_ITEM_BUF(emad, eth_hdr, dmac, 0x00, 6);
292 MLXSW_ITEM_BUF(emad, eth_hdr, smac, 0x06, 6);
298 MLXSW_ITEM32(emad, eth_hdr, ethertype, 0x0C, 16, 16);
304 MLXSW_ITEM32(emad, eth_hdr, mlx_proto, 0x0C, 8, 8);
310 MLXSW_ITEM32(emad, eth_hdr, ver, 0x0C, 4, 4);
504 char *eth_hdr = skb_push(skb, MLXSW_EMAD_ETH_HDR_LEN); in mlxsw_emad_construct_eth_hdr() local
506 mlxsw_emad_eth_hdr_dmac_memcpy_to(eth_hdr, MLXSW_EMAD_EH_DMAC); in mlxsw_emad_construct_eth_hdr()
507 mlxsw_emad_eth_hdr_smac_memcpy_to(eth_hdr, MLXSW_EMAD_EH_SMAC); in mlxsw_emad_construct_eth_hdr()
508 mlxsw_emad_eth_hdr_ethertype_set(eth_hdr, MLXSW_EMAD_EH_ETHERTYPE); in mlxsw_emad_construct_eth_hdr()
509 mlxsw_emad_eth_hdr_mlx_proto_set(eth_hdr, MLXSW_EMAD_EH_MLX_PROTO); in mlxsw_emad_construct_eth_hdr()
[all …]
/drivers/net/vxlan/
A Dvxlan_core.c1595 skb_postpull_rcsum(skb, eth_hdr(skb), ETH_HLEN); in vxlan_set_mac()
1960 daddr = eth_hdr(request)->h_source; in vxlan_na_create()
1975 ether_addr_copy(eth_hdr(reply)->h_dest, daddr); in vxlan_na_create()
1976 ether_addr_copy(eth_hdr(reply)->h_source, n->ha); in vxlan_na_create()
1977 eth_hdr(reply)->h_proto = htons(ETH_P_IPV6); in vxlan_na_create()
2096 if (is_multicast_ether_addr(eth_hdr(skb)->h_dest)) in route_shortcircuit()
2100 switch (ntohs(eth_hdr(skb)->h_proto)) { in route_shortcircuit()
2152 memcpy(eth_hdr(skb)->h_source, eth_hdr(skb)->h_dest, in route_shortcircuit()
2482 struct ethhdr *eth = eth_hdr(skb); in vxlan_xmit_one()
2727 eth = eth_hdr(skb); in vxlan_xmit()
[all …]
/drivers/net/wireless/mediatek/mt76/mt7615/
A Dmac.c252 struct ethhdr *eth_hdr = (struct ethhdr *)(skb->data + hdr_gap); in mt7615_reverse_frag0_hdr_trans() local
287 ether_addr_copy(hdr.addr3, eth_hdr->h_source); in mt7615_reverse_frag0_hdr_trans()
290 ether_addr_copy(hdr.addr3, eth_hdr->h_dest); in mt7615_reverse_frag0_hdr_trans()
293 ether_addr_copy(hdr.addr3, eth_hdr->h_dest); in mt7615_reverse_frag0_hdr_trans()
294 ether_addr_copy(hdr.addr4, eth_hdr->h_source); in mt7615_reverse_frag0_hdr_trans()
301 if (eth_hdr->h_proto == cpu_to_be16(ETH_P_AARP) || in mt7615_reverse_frag0_hdr_trans()
302 eth_hdr->h_proto == cpu_to_be16(ETH_P_IPX)) in mt7615_reverse_frag0_hdr_trans()
304 else if (be16_to_cpu(eth_hdr->h_proto) >= ETH_P_802_3_MIN) in mt7615_reverse_frag0_hdr_trans()
/drivers/scsi/bnx2fc/
A Dbnx2fc_fcoe.c372 eh = eth_hdr(skb); in bnx2fc_xmit()
447 if (unlikely(eth_hdr(skb)->h_proto != htons(ETH_P_FCOE))) { in bnx2fc_rcv()
530 mac = eth_hdr(skb)->h_source; in bnx2fc_recv_frame()
531 dest_mac = eth_hdr(skb)->h_dest; in bnx2fc_recv_frame()
1100 struct ethhdr *eth_hdr; in bnx2fc_fip_send() local
1105 eth_hdr = (struct ethhdr *)skb_mac_header(skb); in bnx2fc_fip_send()
1111 eth_hdr->h_source, eth_hdr->h_dest); in bnx2fc_fip_send()
/drivers/infiniband/core/
A Dlag.c71 eth = eth_hdr(skb); in rdma_build_skb()
/drivers/net/ethernet/intel/ice/
A Dice_eswitch_br.c156 ether_addr_copy(list[0].h_u.eth_hdr.dst_addr, mac); in ice_eswitch_br_fwd_rule_create()
157 eth_broadcast_addr(list[0].m_u.eth_hdr.dst_addr); in ice_eswitch_br_fwd_rule_create()
202 ether_addr_copy(list[0].h_u.eth_hdr.src_addr, mac); in ice_eswitch_br_guard_rule_create()
203 eth_broadcast_addr(list[0].m_u.eth_hdr.src_addr); in ice_eswitch_br_guard_rule_create()
A Dice_tc_lib.c221 ether_addr_copy(list[i].h_u.eth_hdr.dst_addr, in ice_tc_fill_tunnel_outer()
223 ether_addr_copy(list[i].m_u.eth_hdr.dst_addr, in ice_tc_fill_tunnel_outer()
419 ether_addr_copy(list[i].h_u.eth_hdr.dst_addr, in ice_tc_fill_rules()
421 ether_addr_copy(list[i].m_u.eth_hdr.dst_addr, in ice_tc_fill_rules()
425 ether_addr_copy(list[i].h_u.eth_hdr.src_addr, in ice_tc_fill_rules()
427 ether_addr_copy(list[i].m_u.eth_hdr.src_addr, in ice_tc_fill_rules()
A Dice_protocol_type.h428 struct ice_ether_hdr eth_hdr; member
/drivers/net/wireless/mediatek/mt76/mt7996/
A Dmac.c231 struct ethhdr *eth_hdr = (struct ethhdr *)(skb->data + hdr_gap); in mt7996_reverse_frag0_hdr_trans() local
266 ether_addr_copy(hdr.addr3, eth_hdr->h_source); in mt7996_reverse_frag0_hdr_trans()
269 ether_addr_copy(hdr.addr3, eth_hdr->h_dest); in mt7996_reverse_frag0_hdr_trans()
272 ether_addr_copy(hdr.addr3, eth_hdr->h_dest); in mt7996_reverse_frag0_hdr_trans()
273 ether_addr_copy(hdr.addr4, eth_hdr->h_source); in mt7996_reverse_frag0_hdr_trans()
280 if (eth_hdr->h_proto == cpu_to_be16(ETH_P_AARP) || in mt7996_reverse_frag0_hdr_trans()
281 eth_hdr->h_proto == cpu_to_be16(ETH_P_IPX)) in mt7996_reverse_frag0_hdr_trans()
283 else if (be16_to_cpu(eth_hdr->h_proto) >= ETH_P_802_3_MIN) in mt7996_reverse_frag0_hdr_trans()
/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
A Dipsec_fs.c1724 struct ethhdr *eth_hdr; in setup_pkt_tunnel_reformat() local
1730 bfflen = sizeof(*eth_hdr); in setup_pkt_tunnel_reformat()
1751 eth_hdr = (struct ethhdr *)reformatbf; in setup_pkt_tunnel_reformat()
1754 eth_hdr->h_proto = htons(ETH_P_IP); in setup_pkt_tunnel_reformat()
1757 eth_hdr->h_proto = htons(ETH_P_IPV6); in setup_pkt_tunnel_reformat()
1763 ether_addr_copy(eth_hdr->h_dest, attrs->dmac); in setup_pkt_tunnel_reformat()
1764 ether_addr_copy(eth_hdr->h_source, attrs->smac); in setup_pkt_tunnel_reformat()
1774 hdr = reformatbf + sizeof(*eth_hdr); in setup_pkt_tunnel_reformat()
/drivers/net/
A Dmacvlan.c268 const struct ethhdr *eth = eth_hdr(skb); in macvlan_broadcast()
418 if (ether_addr_equal_64bits(eth_hdr(skb)->h_dest, dev->dev_addr)) in macvlan_forward_source_one()
450 const struct ethhdr *eth = eth_hdr(skb); in macvlan_handle_frame()
470 eth = eth_hdr(skb); in macvlan_handle_frame()

Completed in 102 milliseconds

123