/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_selftest.c | 106 struct ethhdr *ethh; in mlx5e_test_get_udp_skb() local 121 ethh = skb_push(skb, ETH_HLEN); in mlx5e_test_get_udp_skb() 131 ether_addr_copy(ethh->h_dest, priv->netdev->dev_addr); in mlx5e_test_get_udp_skb() 132 eth_zero_addr(ethh->h_source); in mlx5e_test_get_udp_skb() 133 ethh->h_proto = htons(ETH_P_IP); in mlx5e_test_get_udp_skb() 187 struct ethhdr *ethh; in mlx5e_test_loopback_validate() local 195 ethh = (struct ethhdr *)skb_mac_header(skb); in mlx5e_test_loopback_validate() 196 if (!ether_addr_equal(ethh->h_dest, orig_ndev->dev_addr)) in mlx5e_test_loopback_validate()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_selftest.c | 83 struct ethhdr *ethh; in mlx5e_test_get_udp_skb() local 98 ethh = skb_push(skb, ETH_HLEN); in mlx5e_test_get_udp_skb() 108 ether_addr_copy(ethh->h_dest, priv->netdev->dev_addr); in mlx5e_test_get_udp_skb() 109 eth_zero_addr(ethh->h_source); in mlx5e_test_get_udp_skb() 110 ethh->h_proto = htons(ETH_P_IP); in mlx5e_test_get_udp_skb() 164 struct ethhdr *ethh; in mlx5e_test_loopback_validate() local 172 ethh = (struct ethhdr *)skb_mac_header(skb); in mlx5e_test_loopback_validate() 173 if (!ether_addr_equal(ethh->h_dest, orig_ndev->dev_addr)) in mlx5e_test_loopback_validate()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/ |
H A D | en_selftest.c | 52 struct ethhdr *ethh; in mlx4_en_test_loopback_xmit() local 66 ethh = skb_put(skb, sizeof(struct ethhdr)); in mlx4_en_test_loopback_xmit() 68 memcpy(ethh->h_dest, priv->dev->dev_addr, ETH_ALEN); in mlx4_en_test_loopback_xmit() 69 eth_zero_addr(ethh->h_source); in mlx4_en_test_loopback_xmit() 70 ethh->h_proto = htons(ETH_P_ARP); in mlx4_en_test_loopback_xmit()
|
H A D | en_rx.c | 731 const struct ethhdr *ethh = va; in mlx4_en_process_rx_cq() local 737 dma_sync_single_for_cpu(priv->ddev, dma, sizeof(*ethh), in mlx4_en_process_rx_cq() 740 if (is_multicast_ether_addr(ethh->h_dest)) { in mlx4_en_process_rx_cq() 746 mac_hash = ethh->h_source[MLX4_EN_MAC_HASH_IDX]; in mlx4_en_process_rx_cq() 750 ethh->h_source)) in mlx4_en_process_rx_cq()
|
H A D | en_tx.c | 1000 struct ethhdr *ethh; in mlx4_en_xmit() local 1005 ethh = (struct ethhdr *)skb->data; in mlx4_en_xmit() 1006 tx_desc->ctrl.srcrb_flags16[0] = get_unaligned((__be16 *)ethh->h_dest); in mlx4_en_xmit() 1007 tx_desc->ctrl.imm = get_unaligned((__be32 *)(ethh->h_dest + 2)); in mlx4_en_xmit()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx4/ |
H A D | en_selftest.c | 52 struct ethhdr *ethh; in mlx4_en_test_loopback_xmit() local 66 ethh = skb_put(skb, sizeof(struct ethhdr)); in mlx4_en_test_loopback_xmit() 68 memcpy(ethh->h_dest, priv->dev->dev_addr, ETH_ALEN); in mlx4_en_test_loopback_xmit() 69 eth_zero_addr(ethh->h_source); in mlx4_en_test_loopback_xmit() 70 ethh->h_proto = htons(ETH_P_ARP); in mlx4_en_test_loopback_xmit()
|
H A D | en_rx.c | 779 const struct ethhdr *ethh = va; in mlx4_en_process_rx_cq() local 785 dma_sync_single_for_cpu(priv->ddev, dma, sizeof(*ethh), in mlx4_en_process_rx_cq() 788 if (is_multicast_ether_addr(ethh->h_dest)) { in mlx4_en_process_rx_cq() 794 mac_hash = ethh->h_source[MLX4_EN_MAC_HASH_IDX]; in mlx4_en_process_rx_cq() 798 ethh->h_source)) in mlx4_en_process_rx_cq()
|
H A D | en_tx.c | 1008 struct ethhdr *ethh; in mlx4_en_xmit() local 1013 ethh = (struct ethhdr *)skb->data; in mlx4_en_xmit() 1014 tx_desc->ctrl.srcrb_flags16[0] = get_unaligned((__be16 *)ethh->h_dest); in mlx4_en_xmit() 1015 tx_desc->ctrl.imm = get_unaligned((__be32 *)(ethh->h_dest + 2)); in mlx4_en_xmit()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
H A D | test_tcp_check_syncookie_kern.c | 50 struct ethhdr *ethh; in check_syncookie() local 60 ethh = data; in check_syncookie() 61 if (ethh + 1 > data_end) in check_syncookie() 64 switch (bpf_ntohs(ethh->h_proto)) { in check_syncookie()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | test_tcp_check_syncookie_kern.c | 50 struct ethhdr *ethh; in check_syncookie() local 60 ethh = data; in check_syncookie() 61 if (ethh + 1 > data_end) in check_syncookie() 64 switch (bpf_ntohs(ethh->h_proto)) { in check_syncookie()
|
/kernel/linux/linux-5.10/lib/ |
H A D | test_blackhole_dev.c | 32 struct ethhdr *ethh; in test_blackholedev_init() local 64 ethh = (struct ethhdr *)skb_push(skb, sizeof(struct ethhdr)); in test_blackholedev_init()
|
/kernel/linux/linux-5.10/drivers/net/ipvlan/ |
H A D | ipvlan_core.c | 228 struct ethhdr *ethh; in ipvlan_process_multicast() local 248 ethh = eth_hdr(skb); in ipvlan_process_multicast() 250 mac_hash = ipvlan_mac_hash(ethh->h_dest); in ipvlan_process_multicast() 252 if (ether_addr_equal(ethh->h_dest, port->dev->broadcast)) in ipvlan_process_multicast() 523 struct ethhdr *ethh = eth_hdr(skb); in ipvlan_process_outbound() local 525 if (is_multicast_ether_addr(ethh->h_dest)) { in ipvlan_process_outbound() 533 skb_pull(skb, sizeof(*ethh)); in ipvlan_process_outbound()
|
/kernel/linux/linux-6.6/drivers/net/ipvlan/ |
H A D | ipvlan_core.c | 228 struct ethhdr *ethh; in ipvlan_process_multicast() local 248 ethh = eth_hdr(skb); in ipvlan_process_multicast() 250 mac_hash = ipvlan_mac_hash(ethh->h_dest); in ipvlan_process_multicast() 252 if (ether_addr_equal(ethh->h_dest, port->dev->broadcast)) in ipvlan_process_multicast() 522 struct ethhdr *ethh = eth_hdr(skb); in ipvlan_process_outbound() local 524 if (is_multicast_ether_addr(ethh->h_dest)) { in ipvlan_process_outbound() 532 skb_pull(skb, sizeof(*ethh)); in ipvlan_process_outbound()
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/i40iw/ |
H A D | i40iw_cm.c | 385 struct ethhdr *ethh; in i40iw_form_cm_frame() local 423 ethh = (struct ethhdr *)buf; in i40iw_form_cm_frame() 434 ether_addr_copy(ethh->h_dest, cm_node->rem_mac); in i40iw_form_cm_frame() 435 ether_addr_copy(ethh->h_source, cm_node->loc_mac); in i40iw_form_cm_frame() 437 ((struct vlan_ethhdr *)ethh)->h_vlan_proto = htons(ETH_P_8021Q); in i40iw_form_cm_frame() 439 ((struct vlan_ethhdr *)ethh)->h_vlan_TCI = htons(vtag); in i40iw_form_cm_frame() 441 ((struct vlan_ethhdr *)ethh)->h_vlan_encapsulated_proto = htons(ETH_P_IP); in i40iw_form_cm_frame() 443 ethh->h_proto = htons(ETH_P_IP); in i40iw_form_cm_frame() 464 ether_addr_copy(ethh->h_dest, cm_node->rem_mac); in i40iw_form_cm_frame() 465 ether_addr_copy(ethh in i40iw_form_cm_frame() 3134 struct vlan_ethhdr *ethh; i40iw_receive_ilq() local [all...] |
H A D | i40iw_utils.c | 1424 struct ethhdr *ethh = (struct ethhdr *)buf->mem.va; in i40iw_puda_get_tcpip_info() local 1426 if (ethh->h_proto == htons(0x8100)) { in i40iw_puda_get_tcpip_info() 1428 buf->vlan_id = ntohs(((struct vlan_ethhdr *)ethh)->h_vlan_TCI) & VLAN_VID_MASK; in i40iw_puda_get_tcpip_info()
|
/kernel/linux/linux-6.6/drivers/infiniband/hw/irdma/ |
H A D | cm.c | 423 struct ethhdr *ethh; in irdma_form_uda_cm_frame() local 463 ethh = (struct ethhdr *)buf; in irdma_form_uda_cm_frame() 477 ether_addr_copy(ethh->h_dest, cm_node->rem_mac); in irdma_form_uda_cm_frame() 478 ether_addr_copy(ethh->h_source, cm_node->loc_mac); in irdma_form_uda_cm_frame() 480 ((struct vlan_ethhdr *)ethh)->h_vlan_proto = in irdma_form_uda_cm_frame() 484 ((struct vlan_ethhdr *)ethh)->h_vlan_TCI = htons(vtag); in irdma_form_uda_cm_frame() 486 ((struct vlan_ethhdr *)ethh)->h_vlan_encapsulated_proto = in irdma_form_uda_cm_frame() 489 ethh->h_proto = htons(ETH_P_IP); in irdma_form_uda_cm_frame() 510 ether_addr_copy(ethh->h_dest, cm_node->rem_mac); in irdma_form_uda_cm_frame() 511 ether_addr_copy(ethh in irdma_form_uda_cm_frame() 3146 struct vlan_ethhdr *ethh; irdma_receive_ilq() local [all...] |
H A D | utils.c | 1567 struct ethhdr *ethh = buf->mem.va; in irdma_gen1_puda_get_tcpip_info() local 1569 if (ethh->h_proto == htons(0x8100)) { in irdma_gen1_puda_get_tcpip_info() 1571 buf->vlan_id = ntohs(((struct vlan_ethhdr *)ethh)->h_vlan_TCI) & in irdma_gen1_puda_get_tcpip_info()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_iwarp.c | 1678 struct ethhdr *ethh; in qed_iwarp_parse_rx_pkt() local 1686 ethh = buf; in qed_iwarp_parse_rx_pkt() 1687 eth_type = ntohs(ethh->h_proto); in qed_iwarp_parse_rx_pkt() 1690 vethh = (struct vlan_ethhdr *)ethh; in qed_iwarp_parse_rx_pkt() 1697 if (!ether_addr_equal(ethh->h_dest, in qed_iwarp_parse_rx_pkt() 1702 ethh->h_dest, p_hwfn->p_rdma_info->iwarp.mac_addr); in qed_iwarp_parse_rx_pkt() 1706 ether_addr_copy(remote_mac_addr, ethh->h_source); in qed_iwarp_parse_rx_pkt() 1707 ether_addr_copy(local_mac_addr, ethh->h_dest); in qed_iwarp_parse_rx_pkt() 1710 eth_type, ethh->h_source); in qed_iwarp_parse_rx_pkt() 1713 eth_hlen, ethh in qed_iwarp_parse_rx_pkt() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_iwarp.c | 1678 struct ethhdr *ethh; in qed_iwarp_parse_rx_pkt() local 1686 ethh = buf; in qed_iwarp_parse_rx_pkt() 1687 eth_type = ntohs(ethh->h_proto); in qed_iwarp_parse_rx_pkt() 1690 vethh = (struct vlan_ethhdr *)ethh; in qed_iwarp_parse_rx_pkt() 1697 if (!ether_addr_equal(ethh->h_dest, in qed_iwarp_parse_rx_pkt() 1702 ethh->h_dest, p_hwfn->p_rdma_info->iwarp.mac_addr); in qed_iwarp_parse_rx_pkt() 1706 ether_addr_copy(remote_mac_addr, ethh->h_source); in qed_iwarp_parse_rx_pkt() 1707 ether_addr_copy(local_mac_addr, ethh->h_dest); in qed_iwarp_parse_rx_pkt() 1710 eth_type, ethh->h_source); in qed_iwarp_parse_rx_pkt() 1713 eth_hlen, ethh in qed_iwarp_parse_rx_pkt() [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns3/ |
H A D | hns3_ethtool.c | 155 struct ethhdr *ethh; in hns3_lp_setup_skb() local 159 ethh = skb_put(skb, sizeof(struct ethhdr)); in hns3_lp_setup_skb() 162 memcpy(ethh->h_dest, ndev->dev_addr, ETH_ALEN); in hns3_lp_setup_skb() 172 ethh->h_dest[5] += HNS3_NIC_LB_DST_MAC_ADDR; in hns3_lp_setup_skb() 173 eth_zero_addr(ethh->h_source); in hns3_lp_setup_skb() 174 ethh->h_proto = htons(ETH_P_ARP); in hns3_lp_setup_skb()
|
/kernel/linux/linux-5.10/drivers/media/dvb-core/ |
H A D | dvb_net.c | 307 struct ethhdr *ethh; member 735 h->ethh = (struct ethhdr *)h->priv->ule_skb->data; in dvb_net_ule_check_crc() 736 memcpy(h->ethh->h_dest, dest_addr, ETH_ALEN); in dvb_net_ule_check_crc() 737 eth_zero_addr(h->ethh->h_source); in dvb_net_ule_check_crc() 738 h->ethh->h_proto = htons(h->priv->ule_sndu_type); in dvb_net_ule_check_crc() 765 .ethh = NULL, in dvb_net_ule()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/hisilicon/hns3/ |
H A D | hns3_ethtool.c | 155 struct ethhdr *ethh; in hns3_lp_setup_skb() local 159 ethh = skb_put(skb, sizeof(struct ethhdr)); in hns3_lp_setup_skb() 162 memcpy(ethh->h_dest, ndev->dev_addr, ETH_ALEN); in hns3_lp_setup_skb() 172 ethh->h_dest[5] += HNS3_NIC_LB_DST_MAC_ADDR; in hns3_lp_setup_skb() 173 eth_zero_addr(ethh->h_source); in hns3_lp_setup_skb() 174 ethh->h_proto = htons(ETH_P_ARP); in hns3_lp_setup_skb()
|
/kernel/linux/linux-6.6/drivers/media/dvb-core/ |
H A D | dvb_net.c | 307 struct ethhdr *ethh; member 735 h->ethh = (struct ethhdr *)h->priv->ule_skb->data; in dvb_net_ule_check_crc() 736 memcpy(h->ethh->h_dest, dest_addr, ETH_ALEN); in dvb_net_ule_check_crc() 737 eth_zero_addr(h->ethh->h_source); in dvb_net_ule_check_crc() 738 h->ethh->h_proto = htons(h->priv->ule_sndu_type); in dvb_net_ule_check_crc() 765 .ethh = NULL, in dvb_net_ule()
|
/kernel/linux/linux-5.10/net/openvswitch/ |
H A D | actions.c | 296 const struct ovs_action_push_eth *ethh) in push_eth() 300 err = skb_eth_push(skb, ethh->addresses.eth_dst, in push_eth() 301 ethh->addresses.eth_src); in push_eth() 295 push_eth(struct sk_buff *skb, struct sw_flow_key *key, const struct ovs_action_push_eth *ethh) push_eth() argument
|
/kernel/linux/linux-6.6/net/openvswitch/ |
H A D | actions.c | 299 const struct ovs_action_push_eth *ethh) in push_eth() 303 err = skb_eth_push(skb, ethh->addresses.eth_dst, in push_eth() 304 ethh->addresses.eth_src); in push_eth() 298 push_eth(struct sk_buff *skb, struct sw_flow_key *key, const struct ovs_action_push_eth *ethh) push_eth() argument
|