/linux-master/drivers/net/ethernet/mellanox/mlx4/ |
H A D | en_selftest.c | 52 struct ethhdr *ethh; local 66 ethh = skb_put(skb, sizeof(struct ethhdr)); 68 memcpy(ethh->h_dest, priv->dev->dev_addr, ETH_ALEN); 69 eth_zero_addr(ethh->h_source); 70 ethh->h_proto = htons(ETH_P_ARP);
|
H A D | en_rx.c | 779 const struct ethhdr *ethh = va; local 785 dma_sync_single_for_cpu(priv->ddev, dma, sizeof(*ethh), 788 if (is_multicast_ether_addr(ethh->h_dest)) { 794 mac_hash = ethh->h_source[MLX4_EN_MAC_HASH_IDX]; 798 ethh->h_source))
|
H A D | en_tx.c | 1008 struct ethhdr *ethh; local 1013 ethh = (struct ethhdr *)skb->data; 1014 tx_desc->ctrl.srcrb_flags16[0] = get_unaligned((__be16 *)ethh->h_dest); 1015 tx_desc->ctrl.imm = get_unaligned((__be32 *)(ethh->h_dest + 2));
|
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | test_tcp_check_syncookie_kern.c | 50 struct ethhdr *ethh; local 60 ethh = data; 61 if (ethh + 1 > data_end) 64 switch (bpf_ntohs(ethh->h_proto)) {
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_selftest.c | 83 struct ethhdr *ethh; local 98 ethh = skb_push(skb, ETH_HLEN); 108 ether_addr_copy(ethh->h_dest, priv->netdev->dev_addr); 109 eth_zero_addr(ethh->h_source); 110 ethh->h_proto = htons(ETH_P_IP); 164 struct ethhdr *ethh; local 172 ethh = (struct ethhdr *)skb_mac_header(skb); 173 if (!ether_addr_equal(ethh->h_dest, orig_ndev->dev_addr))
|
/linux-master/drivers/net/ipvlan/ |
H A D | ipvlan_core.c | 228 struct ethhdr *ethh; local 248 ethh = eth_hdr(skb); 250 mac_hash = ipvlan_mac_hash(ethh->h_dest); 252 if (ether_addr_equal(ethh->h_dest, port->dev->broadcast)) 522 struct ethhdr *ethh = eth_hdr(skb); local 524 if (is_multicast_ether_addr(ethh->h_dest)) { 532 skb_pull(skb, sizeof(*ethh));
|
/linux-master/drivers/media/dvb-core/ |
H A D | dvb_net.c | 307 struct ethhdr *ethh; member in struct:dvb_net_ule_handle 735 h->ethh = (struct ethhdr *)h->priv->ule_skb->data; 736 memcpy(h->ethh->h_dest, dest_addr, ETH_ALEN); 737 eth_zero_addr(h->ethh->h_source); 738 h->ethh->h_proto = htons(h->priv->ule_sndu_type); 765 .ethh = NULL,
|
/linux-master/drivers/infiniband/hw/irdma/ |
H A D | cm.c | 423 struct ethhdr *ethh; local 463 ethh = (struct ethhdr *)buf; 477 ether_addr_copy(ethh->h_dest, cm_node->rem_mac); 478 ether_addr_copy(ethh->h_source, cm_node->loc_mac); 480 ((struct vlan_ethhdr *)ethh)->h_vlan_proto = 484 ((struct vlan_ethhdr *)ethh)->h_vlan_TCI = htons(vtag); 486 ((struct vlan_ethhdr *)ethh)->h_vlan_encapsulated_proto = 489 ethh->h_proto = htons(ETH_P_IP); 510 ether_addr_copy(ethh->h_dest, cm_node->rem_mac); 511 ether_addr_copy(ethh 3146 struct vlan_ethhdr *ethh; local [all...] |
H A D | utils.c | 1562 struct ethhdr *ethh = buf->mem.va; local 1564 if (ethh->h_proto == htons(0x8100)) { 1566 buf->vlan_id = ntohs(((struct vlan_ethhdr *)ethh)->h_vlan_TCI) &
|
/linux-master/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_iwarp.c | 1678 struct ethhdr *ethh; local 1686 ethh = buf; 1687 eth_type = ntohs(ethh->h_proto); 1690 vethh = (struct vlan_ethhdr *)ethh; 1697 if (!ether_addr_equal(ethh->h_dest, 1702 ethh->h_dest, p_hwfn->p_rdma_info->iwarp.mac_addr); 1706 ether_addr_copy(remote_mac_addr, ethh->h_source); 1707 ether_addr_copy(local_mac_addr, ethh->h_dest); 1710 eth_type, ethh->h_source); 1713 eth_hlen, ethh [all...] |
/linux-master/drivers/net/ethernet/hisilicon/hns3/ |
H A D | hns3_ethtool.c | 158 struct ethhdr *ethh; local 162 ethh = skb_put(skb, sizeof(struct ethhdr)); 165 memcpy(ethh->h_dest, ndev->dev_addr, ETH_ALEN); 175 ethh->h_dest[5] += HNS3_NIC_LB_DST_MAC_ADDR; 176 eth_zero_addr(ethh->h_source); 177 ethh->h_proto = htons(ETH_P_ARP);
|
/linux-master/net/openvswitch/ |
H A D | actions.c | 299 const struct ovs_action_push_eth *ethh) 303 err = skb_eth_push(skb, ethh->addresses.eth_dst, 304 ethh->addresses.eth_src); 298 push_eth(struct sk_buff *skb, struct sw_flow_key *key, const struct ovs_action_push_eth *ethh) argument
|
/linux-master/net/core/ |
H A D | filter.c | 2403 struct ethhdr *ethh = eth_hdr(skb); local 2408 if (is_multicast_ether_addr(ethh->h_dest)) 2411 skb_pull(skb, sizeof(*ethh));
|