/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | test_cls_redirect_dynptr.c | 282 encap->eth.h_proto = bpf_htons(ETH_P_IPV6); 430 memcpy(temp, encap->eth.h_dest, sizeof(temp)); 431 memcpy(encap->eth.h_dest, encap->eth.h_source, 432 sizeof(encap->eth.h_dest)); 433 memcpy(encap->eth.h_source, temp, sizeof(encap->eth.h_source));
|
H A D | test_l4lb.c | 327 struct eth_hdr *eth = pkt_start; local 447 *(u32 *)eth->eth_dest = tkey.remote_ipv4; 456 struct eth_hdr *eth = data; local 463 eth_proto = eth->eth_proto;
|
H A D | test_l4lb_noinline.c | 326 struct eth_hdr *eth = pkt_start; local 446 *(u32 *)eth->eth_dest = tkey.remote_ipv4; 455 struct eth_hdr *eth = data; local 462 eth_proto = eth->eth_proto;
|
H A D | test_tunnel_kern.c | 422 struct ethhdr *eth = (struct ethhdr *)(long)skb->data; local 430 if ((void *)eth + sizeof(*eth) > data_end) { 435 if (eth->h_proto != bpf_htons(ETH_P_IP)) 438 iph = (struct iphdr *)(eth + 1);
|
/linux-master/net/core/ |
H A D | netpoll.c | 406 struct ethhdr *eth; local 461 eth = skb_push(skb, ETH_HLEN); 463 skb->protocol = eth->h_proto = htons(ETH_P_IPV6); 490 eth = skb_push(skb, ETH_HLEN); 492 skb->protocol = eth->h_proto = htons(ETH_P_IP); 495 ether_addr_copy(eth->h_source, np->dev->dev_addr); 496 ether_addr_copy(eth->h_dest, np->remote_mac);
|
H A D | gro.c | 725 const struct ethhdr *eth; local 726 unsigned int hlen = sizeof(*eth); 734 eth = skb_gro_header_slow(skb, hlen, 0); 735 if (unlikely(!eth)) { 742 eth = (const struct ethhdr *)skb->data; 757 skb->protocol = eth->h_proto;
|
H A D | flow_dissector.c | 704 const struct ethhdr *eth; local 707 eth = __skb_header_pointer(skb, *p_nhoff + offset, 710 if (!eth) 712 *p_proto = eth->h_proto; 713 offset += sizeof(*eth); 785 struct ethhdr eth; member in struct:__anon3372 799 *p_proto = hdr->eth.h_proto; 1150 struct ethhdr *eth = eth_hdr(skb); local 1156 memcpy(key_eth_addrs, eth, sizeof(*key_eth_addrs));
|
/linux-master/drivers/net/wireless/intel/ipw2x00/ |
H A D | libipw_tx.c | 211 struct ethhdr *eth; local 214 eth = (struct ethhdr *)skb->data; 215 if (eth->h_proto != htons(ETH_P_IP))
|
/linux-master/drivers/net/hamradio/ |
H A D | bpqether.c | 174 struct ethhdr *eth; local 199 eth = eth_hdr(skb); 202 !ether_addr_equal(eth->h_source, bpq->acpt_addr))
|
/linux-master/drivers/infiniband/hw/mlx5/ |
H A D | fs.c | 223 if (FIELDS_NOT_SUPPORTED(ib_spec->eth.mask, LAST_ETH_FIELD)) 228 ib_spec->eth.mask.dst_mac); 231 ib_spec->eth.val.dst_mac); 235 ib_spec->eth.mask.src_mac); 238 ib_spec->eth.val.src_mac); 240 if (ib_spec->eth.mask.vlan_tag) { 247 first_vid, ntohs(ib_spec->eth.mask.vlan_tag)); 249 first_vid, ntohs(ib_spec->eth.val.vlan_tag)); 253 ntohs(ib_spec->eth.mask.vlan_tag) >> 12); 256 ntohs(ib_spec->eth [all...] |
/linux-master/drivers/net/ethernet/brocade/bna/ |
H A D | bfa_defs_cna.h | 101 struct bfa_port_eth_stats eth; member in union:bfa_port_stats_u
|
/linux-master/drivers/mfd/ |
H A D | ioc3.c | 243 DEFINE_RES_MEM(offsetof(struct ioc3, eth), 244 sizeof_field(struct ioc3, eth)), 258 .name = "ioc3-eth", 548 writel(0, &ipd->regs->eth.eier); 549 writel(~0, &ipd->regs->eth.eisr);
|
/linux-master/drivers/net/ethernet/synopsys/ |
H A D | dwc-xlgmac-common.c | 335 struct ethhdr *eth = (struct ethhdr *)skb->data; local 344 netdev_dbg(netdev, "Dst MAC addr: %pM\n", eth->h_dest); 345 netdev_dbg(netdev, "Src MAC addr: %pM\n", eth->h_source); 346 netdev_dbg(netdev, "Protocol: %#06hx\n", ntohs(eth->h_proto));
|
/linux-master/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpaa2-eth-trace.h | 196 #define TRACE_INCLUDE_FILE dpaa2-eth-trace
|
/linux-master/drivers/infiniband/hw/qedr/ |
H A D | qedr_roce_cm.c | 435 ether_addr_copy(udh->eth.dmac_h, ah_attr->roce.dmac); 436 ether_addr_copy(udh->eth.smac_h, dev->ndev->dev_addr); 438 udh->eth.type = htons(ETH_P_8021Q); 442 udh->eth.type = htons(ether_type); 522 if (ether_addr_equal(udh.eth.smac_h, udh.eth.dmac_h))
|
/linux-master/drivers/scsi/fcoe/ |
H A D | fcoe_ctlr.c | 380 struct ethhdr eth; member in struct:fip_sol 397 memcpy(sol->eth.h_dest, fcf ? fcf->fcf_mac : fcoe_all_fcfs, ETH_ALEN); 398 memcpy(sol->eth.h_source, fip->ctl_src_addr, ETH_ALEN); 399 sol->eth.h_proto = htons(ETH_P_FIP); 535 struct ethhdr eth; member in struct:fip_kal 556 memcpy(kal->eth.h_dest, fcf->fcf_mac, ETH_ALEN); 557 memcpy(kal->eth.h_source, sa, ETH_ALEN); 558 kal->eth.h_proto = htons(ETH_P_FIP); 608 struct ethhdr eth; member in struct:fip_encaps_head 626 if (fcoe_ctlr_vn_lookup(fip, d_id, cap->eth 2019 struct ethhdr eth; member in struct:fip_vn2vn_probe_frame 2897 struct ethhdr eth; member in struct:fip_vlan_notify_frame [all...] |
/linux-master/drivers/net/ |
H A D | vrf.c | 625 struct ethhdr *eth = skb_push(skb, ETH_HLEN); local 627 ether_addr_copy(eth->h_source, vrf_dev->dev_addr); 628 eth_zero_addr(eth->h_dest); 629 eth->h_proto = skb->protocol; 1231 struct ethhdr *eth; local 1243 eth = (struct ethhdr *)skb->data; 1251 ether_addr_copy(eth->h_dest, vrf_dev->dev_addr); 1252 ether_addr_copy(eth->h_source, vrf_dev->dev_addr); 1253 eth->h_proto = htons(proto); 1259 skb->protocol = eth [all...] |
H A D | rionet.c | 174 struct ethhdr *eth = (struct ethhdr *)skb->data; local 181 if (is_multicast_ether_addr(eth->h_dest)) 192 if (is_multicast_ether_addr(eth->h_dest)) { 204 } else if (RIONET_MAC_MATCH(eth->h_dest)) { 205 destid = RIONET_GET_DESTID(eth->h_dest);
|
/linux-master/net/openvswitch/ |
H A D | conntrack.c | 111 switch (ntohs(key->eth.type)) { 211 if (key->eth.type == htons(ETH_P_IP) && 217 } else if (key->eth.type == htons(ETH_P_IPV6) && 305 if (swkey->eth.type == htons(ETH_P_IP)) { 318 } else if (swkey->eth.type == htons(ETH_P_IPV6)) { 618 if (key->eth.type == htons(ETH_P_IP)) 620 else if (key->eth.type == htons(ETH_P_IPV6)) 640 if (key->eth.type == htons(ETH_P_IP)) 642 else if (key->eth.type == htons(ETH_P_IPV6))
|
H A D | actions.c | 226 key->eth.vlan.tci = 0; 227 key->eth.vlan.tpid = 0; 238 key->eth.vlan.tci = vlan->vlan_tci; 239 key->eth.vlan.tpid = vlan->vlan_tpid; 276 ether_addr_copy(flow_key->eth.src, eth_hdr(skb)->h_source); 277 ether_addr_copy(flow_key->eth.dst, eth_hdr(skb)->h_dest); 877 if (key->eth.type == htons(ETH_P_IP)) { 893 } else if (key->eth.type == htons(ETH_P_IPV6)) { 911 WARN_ONCE(1, "Failed fragment ->%s: eth=%04x, MRU=%d, MTU=%d.", 912 ovs_vport_name(vport), ntohs(key->eth [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_tx.c | 445 eseg = &wqe->eth; 520 return !memcmp(&session->wqe->eth, eseg, MLX5E_ACCEL_ESEG_LEN); 542 memcpy(&session->wqe->eth, eseg, MLX5E_ACCEL_ESEG_LEN); 730 mlx5e_txwqe_build_eseg(priv, sq, skb, &accel, &wqe->eth, attr.ihs); 1007 eseg = &wqe->eth;
|
/linux-master/drivers/net/ethernet/pensando/ionic/ |
H A D | ionic_lif.c | 1316 nfilters = le32_to_cpu(lif->identity->eth.max_ucast_filters); 1858 tbl_sz = le16_to_cpu(lif->ionic->ident.lif.eth.rss_ind_tbl_sz); 1882 tbl_sz = le16_to_cpu(lif->ionic->ident.lif.eth.rss_ind_tbl_sz); 1893 tbl_sz = le16_to_cpu(lif->ionic->ident.lif.eth.rss_ind_tbl_sz); 2748 maxfs = __le32_to_cpu(lif->identity->eth.max_frame_size) - VLAN_ETH_HLEN; 3184 le32_to_cpu(lif->identity->eth.min_frame_size)); 3186 le32_to_cpu(lif->identity->eth.max_frame_size) - ETH_HLEN - VLAN_HLEN; 3240 tbl_sz = le16_to_cpu(lif->ionic->ident.lif.eth.rss_ind_tbl_sz); 3916 dev_dbg(ionic->dev, "eth.max_ucast_filters %d\n", 3917 le32_to_cpu(lid->eth [all...] |
H A D | ionic_phc.c | 107 if ((ionic->ident.lif.eth.hwstamp_tx_modes & mask) != mask) { 116 if ((ionic->ident.lif.eth.hwstamp_rx_filters & mask) != mask) { 532 features = le64_to_cpu(ionic->ident.lif.eth.config.features);
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/rep/ |
H A D | tc.c | 94 struct ethhdr *eth = (struct ethhdr *)e->encap_header; local 116 ether_addr_copy(eth->h_dest, ha); 122 ether_addr_copy(eth->h_source, route_dev->dev_addr);
|
/linux-master/drivers/firewire/ |
H A D | net.c | 506 struct fwnet_header *eth; local 511 skb_pull(skb, sizeof(*eth)); 512 eth = (struct fwnet_header *)skb_mac_header(skb); 513 if (fwnet_hwaddr_is_multicast(eth->h_dest)) { 514 if (memcmp(eth->h_dest, net->broadcast, 522 if (memcmp(eth->h_dest, net->dev_addr, net->addr_len)) 525 if (ntohs(eth->h_proto) >= ETH_P_802_3_MIN) { 526 protocol = eth->h_proto;
|