Home
last modified time | relevance | path

Searched refs:ethh (Results 1 – 11 of 11) sorted by relevance

/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_selftest.c84 struct ethhdr *ethh; in mlx5e_test_get_udp_skb() local
99 ethh = skb_push(skb, ETH_HLEN); in mlx5e_test_get_udp_skb()
109 ether_addr_copy(ethh->h_dest, priv->netdev->dev_addr); in mlx5e_test_get_udp_skb()
110 eth_zero_addr(ethh->h_source); in mlx5e_test_get_udp_skb()
111 ethh->h_proto = htons(ETH_P_IP); in mlx5e_test_get_udp_skb()
165 struct ethhdr *ethh; in mlx5e_test_loopback_validate() local
176 ethh = (struct ethhdr *)skb_mac_header(skb); in mlx5e_test_loopback_validate()
177 if (!ether_addr_equal(ethh->h_dest, orig_ndev->dev_addr)) in mlx5e_test_loopback_validate()
/linux/drivers/net/ethernet/mellanox/mlx4/
H A Den_selftest.c52 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 Den_rx.c750 const struct ethhdr *ethh = va; in mlx4_en_process_rx_cq() local
757 dma_sync_single_for_cpu(priv->ddev, dma, sizeof(*ethh), in mlx4_en_process_rx_cq()
760 if (is_multicast_ether_addr(ethh->h_dest)) { in mlx4_en_process_rx_cq()
766 mac_hash = ethh->h_source[MLX4_EN_MAC_HASH_IDX]; in mlx4_en_process_rx_cq()
770 ethh->h_source)) in mlx4_en_process_rx_cq()
/linux/drivers/net/ipvlan/
H A Dipvlan_core.c241 struct ethhdr *ethh; in ipvlan_process_multicast() local
261 ethh = eth_hdr(skb); in ipvlan_process_multicast()
263 mac_hash = ipvlan_mac_hash(ethh->h_dest); in ipvlan_process_multicast()
265 if (ether_addr_equal(ethh->h_dest, port->dev->broadcast)) in ipvlan_process_multicast()
547 struct ethhdr *ethh = eth_hdr(skb); in ipvlan_process_outbound() local
549 if (is_multicast_ether_addr(ethh->h_dest)) { in ipvlan_process_outbound()
557 skb_pull(skb, sizeof(*ethh)); in ipvlan_process_outbound()
/linux/drivers/infiniband/hw/irdma/
H A Dcm.c423 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->h_source, cm_node->loc_mac); in irdma_form_uda_cm_frame()
[all …]
H A Dutils.c1548 struct ethhdr *ethh = buf->mem.va; in irdma_gen1_puda_get_tcpip_info() local
1550 if (ethh->h_proto == htons(0x8100)) { in irdma_gen1_puda_get_tcpip_info()
1552 buf->vlan_id = ntohs(((struct vlan_ethhdr *)ethh)->h_vlan_TCI) & in irdma_gen1_puda_get_tcpip_info()
/linux/drivers/media/dvb-core/
H A Ddvb_net.c310 struct ethhdr *ethh; member
738 h->ethh = (struct ethhdr *)h->priv->ule_skb->data; in dvb_net_ule_check_crc()
739 memcpy(h->ethh->h_dest, dest_addr, ETH_ALEN); in dvb_net_ule_check_crc()
740 eth_zero_addr(h->ethh->h_source); in dvb_net_ule_check_crc()
741 h->ethh->h_proto = htons(h->priv->ule_sndu_type); in dvb_net_ule_check_crc()
768 .ethh = NULL, in dvb_net_ule()
/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_iwarp.c1678 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->h_dest); in qed_iwarp_parse_rx_pkt()
[all …]
/linux/drivers/net/ethernet/hisilicon/hns3/
H A Dhns3_ethtool.c159 struct ethhdr *ethh; in hns3_lp_setup_skb() local
163 ethh = skb_put(skb, sizeof(struct ethhdr)); in hns3_lp_setup_skb()
166 memcpy(ethh->h_dest, ndev->dev_addr, ETH_ALEN); in hns3_lp_setup_skb()
176 ethh->h_dest[5] += HNS3_NIC_LB_DST_MAC_ADDR; in hns3_lp_setup_skb()
177 eth_zero_addr(ethh->h_source); in hns3_lp_setup_skb()
178 ethh->h_proto = htons(ETH_P_ARP); in hns3_lp_setup_skb()
/linux/net/openvswitch/
H A Dactions.c267 const struct ovs_action_push_eth *ethh) in push_eth() argument
271 err = skb_eth_push(skb, ethh->addresses.eth_dst, in push_eth()
272 ethh->addresses.eth_src); in push_eth()
/linux/net/core/
H A Dfilter.c2427 struct ethhdr *ethh = eth_hdr(skb); in __bpf_redirect_neigh() local
2432 if (is_multicast_ether_addr(ethh->h_dest)) in __bpf_redirect_neigh()
2435 skb_pull(skb, sizeof(*ethh)); in __bpf_redirect_neigh()