Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/
Den_selftest.c117 struct ethhdr *ethh; in mlx5e_test_get_udp_skb() local
123 (sizeof(*ethh) + sizeof(*iph) + sizeof(*udph)); in mlx5e_test_get_udp_skb()
135 ethh = skb_push(skb, ETH_HLEN); in mlx5e_test_get_udp_skb()
145 ether_addr_copy(ethh->h_dest, priv->netdev->dev_addr); in mlx5e_test_get_udp_skb()
146 eth_zero_addr(ethh->h_source); in mlx5e_test_get_udp_skb()
147 ethh->h_proto = htons(ETH_P_IP); in mlx5e_test_get_udp_skb()
203 struct ethhdr *ethh; in mlx5e_test_loopback_validate() local
211 ethh = (struct ethhdr *)skb_mac_header(skb); in mlx5e_test_loopback_validate()
212 if (!ether_addr_equal(ethh->h_dest, orig_ndev->dev_addr)) in mlx5e_test_loopback_validate()
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx4/
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()
Den_rx.c720 const struct ethhdr *ethh = va; in mlx4_en_process_rx_cq() local
726 dma_sync_single_for_cpu(priv->ddev, dma, sizeof(*ethh), in mlx4_en_process_rx_cq()
729 if (is_multicast_ether_addr(ethh->h_dest)) { in mlx4_en_process_rx_cq()
735 mac_hash = ethh->h_source[MLX4_EN_MAC_HASH_IDX]; in mlx4_en_process_rx_cq()
739 ethh->h_source)) in mlx4_en_process_rx_cq()
Den_tx.c968 struct ethhdr *ethh; in mlx4_en_xmit() local
973 ethh = (struct ethhdr *)skb->data; in mlx4_en_xmit()
974 tx_desc->ctrl.srcrb_flags16[0] = get_unaligned((__be16 *)ethh->h_dest); in mlx4_en_xmit()
975 tx_desc->ctrl.imm = get_unaligned((__be32 *)(ethh->h_dest + 2)); in mlx4_en_xmit()
/Linux-v4.19/drivers/net/ipvlan/
Dipvlan_core.c233 struct ethhdr *ethh; in ipvlan_process_multicast() local
253 ethh = eth_hdr(skb); in ipvlan_process_multicast()
255 mac_hash = ipvlan_mac_hash(ethh->h_dest); in ipvlan_process_multicast()
257 if (ether_addr_equal(ethh->h_dest, port->dev->broadcast)) in ipvlan_process_multicast()
504 struct ethhdr *ethh = eth_hdr(skb); in ipvlan_process_outbound() local
508 if (is_multicast_ether_addr(ethh->h_dest)) { in ipvlan_process_outbound()
520 skb_pull(skb, sizeof(*ethh)); in ipvlan_process_outbound()
/Linux-v4.19/drivers/net/ethernet/hisilicon/hns3/
Dhns3_ethtool.c147 struct ethhdr *ethh; in hns3_lp_setup_skb() local
151 ethh = skb_put(skb, sizeof(struct ethhdr)); in hns3_lp_setup_skb()
154 memcpy(ethh->h_dest, ndev->dev_addr, ETH_ALEN); in hns3_lp_setup_skb()
155 eth_zero_addr(ethh->h_source); in hns3_lp_setup_skb()
156 ethh->h_proto = htons(ETH_P_ARP); in hns3_lp_setup_skb()
/Linux-v4.19/drivers/infiniband/hw/i40iw/
Di40iw_cm.c385 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->h_source, cm_node->loc_mac); in i40iw_form_cm_frame()
[all …]
Di40iw_utils.c1452 struct ethhdr *ethh = (struct ethhdr *)buf->mem.va; in i40iw_puda_get_tcpip_info() local
1454 if (ethh->h_proto == htons(0x8100)) { in i40iw_puda_get_tcpip_info()
1456 buf->vlan_id = ntohs(((struct vlan_ethhdr *)ethh)->h_vlan_TCI) & VLAN_VID_MASK; in i40iw_puda_get_tcpip_info()
/Linux-v4.19/drivers/media/dvb-core/
Ddvb_net.c317 struct ethhdr *ethh; member
745 h->ethh = (struct ethhdr *)h->priv->ule_skb->data; in dvb_net_ule_check_crc()
746 memcpy(h->ethh->h_dest, dest_addr, ETH_ALEN); in dvb_net_ule_check_crc()
747 eth_zero_addr(h->ethh->h_source); in dvb_net_ule_check_crc()
748 h->ethh->h_proto = htons(h->priv->ule_sndu_type); in dvb_net_ule_check_crc()
775 .ethh = NULL, in dvb_net_ule()
/Linux-v4.19/drivers/net/ethernet/qlogic/qed/
Dqed_iwarp.c1673 struct ethhdr *ethh; in qed_iwarp_parse_rx_pkt() local
1681 ethh = buf; in qed_iwarp_parse_rx_pkt()
1682 eth_type = ntohs(ethh->h_proto); in qed_iwarp_parse_rx_pkt()
1685 vethh = (struct vlan_ethhdr *)ethh; in qed_iwarp_parse_rx_pkt()
1692 ether_addr_copy(remote_mac_addr, ethh->h_source); in qed_iwarp_parse_rx_pkt()
1693 ether_addr_copy(local_mac_addr, ethh->h_dest); in qed_iwarp_parse_rx_pkt()
1696 eth_type, ethh->h_source); in qed_iwarp_parse_rx_pkt()
1699 eth_hlen, ethh->h_dest); in qed_iwarp_parse_rx_pkt()
1701 iph = (struct iphdr *)((u8 *)(ethh) + eth_hlen); in qed_iwarp_parse_rx_pkt()
/Linux-v4.19/net/openvswitch/
Dactions.c359 const struct ovs_action_push_eth *ethh) in push_eth() argument
372 ether_addr_copy(hdr->h_source, ethh->addresses.eth_src); in push_eth()
373 ether_addr_copy(hdr->h_dest, ethh->addresses.eth_dst); in push_eth()
/Linux-v4.19/drivers/infiniband/hw/nes/
Dnes_cm.c442 struct ethhdr *ethh; in form_cm_frame() local
454 ethh = (struct ethhdr *)buf; in form_cm_frame()
472 memcpy(ethh->h_dest, cm_node->rem_mac, ETH_ALEN); in form_cm_frame()
473 memcpy(ethh->h_source, cm_node->loc_mac, ETH_ALEN); in form_cm_frame()
474 ethh->h_proto = htons(0x0800); in form_cm_frame()