| /linux/include/linux/ |
| H A D | virtio_net.h | 293 const struct virtio_net_hdr_v1_hash_tunnel *vhdr, in virtio_net_hdr_tnl_to_skb() argument 298 const struct virtio_net_hdr *hdr = (const struct virtio_net_hdr *)vhdr; in virtio_net_hdr_tnl_to_skb() 334 inner_nh = le16_to_cpu(vhdr->inner_nh_offset); in virtio_net_hdr_tnl_to_skb() 335 outer_th = le16_to_cpu(vhdr->outer_th_offset); in virtio_net_hdr_tnl_to_skb() 417 struct virtio_net_hdr_v1_hash_tunnel *vhdr, in virtio_net_hdr_tnl_from_skb() argument 424 struct virtio_net_hdr *hdr = (struct virtio_net_hdr *)vhdr; in virtio_net_hdr_tnl_from_skb() 447 vhdr->hash_hdr.hash_value_lo = 0; in virtio_net_hdr_tnl_from_skb() 448 vhdr->hash_hdr.hash_value_hi = 0; in virtio_net_hdr_tnl_from_skb() 449 vhdr->hash_hdr.hash_report = 0; in virtio_net_hdr_tnl_from_skb() 450 vhdr->hash_hdr.padding = 0; in virtio_net_hdr_tnl_from_skb() [all …]
|
| /linux/samples/bpf/ |
| H A D | parse_varlen.c | 127 struct vlan_hdr *vhdr; in handle_ingress() local 129 vhdr = data + nh_off; in handle_ingress() 133 h_proto = vhdr->h_vlan_encapsulated_proto; in handle_ingress() 136 struct vlan_hdr *vhdr; in handle_ingress() local 138 vhdr = data + nh_off; in handle_ingress() 142 h_proto = vhdr->h_vlan_encapsulated_proto; in handle_ingress()
|
| H A D | xdp_router_ipv4.bpf.c | 94 struct vlan_hdr *vhdr; in xdp_router_ipv4_prog() local 96 vhdr = data + nh_off; in xdp_router_ipv4_prog() 101 h_proto = vhdr->h_vlan_encapsulated_proto; in xdp_router_ipv4_prog()
|
| /linux/net/8021q/ |
| H A D | vlan_core.c | 470 struct vlan_hdr *vhdr; in vlan_gro_receive() local 476 hlen = off_vlan + sizeof(*vhdr); in vlan_gro_receive() 477 vhdr = skb_gro_header(skb, hlen, off_vlan); in vlan_gro_receive() 478 if (unlikely(!vhdr)) in vlan_gro_receive() 483 type = vhdr->h_vlan_encapsulated_proto; in vlan_gro_receive() 498 if (compare_vlan_header(vhdr, vhdr2)) in vlan_gro_receive() 502 skb_gro_pull(skb, sizeof(*vhdr)); in vlan_gro_receive() 503 skb_gro_postpull_rcsum(skb, vhdr, sizeof(*vhdr)); in vlan_gro_receive() 517 struct vlan_hdr *vhdr = (struct vlan_hdr *)(skb->data + nhoff); in vlan_gro_complete() local 518 __be16 type = vhdr->h_vlan_encapsulated_proto; in vlan_gro_complete() [all …]
|
| H A D | vlan_dev.c | 52 struct vlan_hdr *vhdr; in vlan_dev_hard_header() local 58 vhdr = skb_push(skb, VLAN_HLEN); in vlan_dev_hard_header() 62 vhdr->h_vlan_TCI = htons(vlan_tci); in vlan_dev_hard_header() 69 vhdr->h_vlan_encapsulated_proto = htons(type); in vlan_dev_hard_header() 71 vhdr->h_vlan_encapsulated_proto = htons(len); in vlan_dev_hard_header()
|
| /linux/net/batman-adv/ |
| H A D | main.c | 344 struct vlan_ethhdr *vhdr, vhdr_tmp; in batadv_skb_set_priority() local 357 vhdr = skb_header_pointer(skb, offset + sizeof(*vhdr), in batadv_skb_set_priority() 358 sizeof(*vhdr), &vhdr_tmp); in batadv_skb_set_priority() 359 if (!vhdr) in batadv_skb_set_priority() 361 prio = ntohs(vhdr->h_vlan_TCI) & VLAN_PRIO_MASK; in batadv_skb_set_priority() 575 struct vlan_ethhdr *vhdr; in batadv_get_vid() local 584 vhdr = (struct vlan_ethhdr *)(skb->data + header_len); in batadv_get_vid() 585 vid = ntohs(vhdr->h_vlan_TCI) & VLAN_VID_MASK; in batadv_get_vid()
|
| H A D | mesh-interface.c | 180 struct vlan_ethhdr *vhdr; in batadv_interface_tx() local 209 if (!pskb_may_pull(skb, sizeof(*vhdr))) in batadv_interface_tx() 211 vhdr = vlan_eth_hdr(skb); in batadv_interface_tx() 212 proto = vhdr->h_vlan_encapsulated_proto; in batadv_interface_tx() 408 struct vlan_ethhdr *vhdr; in batadv_interface_rx() local 435 vhdr = skb_vlan_eth_hdr(skb); in batadv_interface_rx() 438 if (vhdr->h_vlan_encapsulated_proto != htons(ETH_P_BATMAN)) in batadv_interface_rx()
|
| H A D | gateway_client.c | 560 struct vlan_ethhdr *vhdr; in batadv_gw_dhcp_recipient_get() local 578 vhdr = vlan_eth_hdr(skb); in batadv_gw_dhcp_recipient_get() 579 proto = vhdr->h_vlan_encapsulated_proto; in batadv_gw_dhcp_recipient_get()
|
| H A D | bridge_loop_avoidance.c | 1084 struct vlan_hdr *vhdr, vhdr_buf; in batadv_bla_process_claim() local 1108 vhdr = skb_header_pointer(skb, headlen, VLAN_HLEN, in batadv_bla_process_claim() 1110 if (!vhdr) in batadv_bla_process_claim() 1113 proto = vhdr->h_vlan_encapsulated_proto; in batadv_bla_process_claim()
|
| /linux/drivers/gpu/drm/radeon/ |
| H A D | radeon_bios.c | 621 VFCT_IMAGE_HEADER *vhdr = &vbios->VbiosHeader; in radeon_acpi_vfct_bios() local 629 offset += vhdr->ImageLength; in radeon_acpi_vfct_bios() 635 if (vhdr->ImageLength && in radeon_acpi_vfct_bios() 636 vhdr->PCIBus == rdev->pdev->bus->number && in radeon_acpi_vfct_bios() 637 vhdr->PCIDevice == PCI_SLOT(rdev->pdev->devfn) && in radeon_acpi_vfct_bios() 638 vhdr->PCIFunction == PCI_FUNC(rdev->pdev->devfn) && in radeon_acpi_vfct_bios() 639 vhdr->VendorID == rdev->pdev->vendor && in radeon_acpi_vfct_bios() 640 vhdr->DeviceID == rdev->pdev->device) { in radeon_acpi_vfct_bios() 642 vhdr->ImageLength, in radeon_acpi_vfct_bios()
|
| /linux/net/netfilter/ |
| H A D | nfnetlink_queue.c | 1356 struct nfqnl_msg_verdict_hdr *vhdr; in verdicthdr_get() local 1362 vhdr = nla_data(nfqa[NFQA_VERDICT_HDR]); in verdicthdr_get() 1363 verdict = ntohl(vhdr->verdict) & NF_VERDICT_MASK; in verdicthdr_get() 1366 return vhdr; in verdicthdr_get() 1381 struct nfqnl_msg_verdict_hdr *vhdr; in nfqnl_recv_verdict_batch() local 1391 vhdr = verdicthdr_get(nfqa); in nfqnl_recv_verdict_batch() 1392 if (!vhdr) in nfqnl_recv_verdict_batch() 1395 verdict = ntohl(vhdr->verdict); in nfqnl_recv_verdict_batch() 1396 maxid = ntohl(vhdr->id); in nfqnl_recv_verdict_batch() 1491 struct nfqnl_msg_verdict_hdr *vhdr; in nfqnl_recv_verdict() local [all …]
|
| H A D | nf_flow_table_ip.c | 535 struct vlan_hdr *vhdr; in nf_flow_vlan_push() local 544 vhdr = (struct vlan_hdr *)skb->data; in nf_flow_vlan_push() 546 vhdr->h_vlan_TCI = htons(skb_vlan_tag_get(skb)); in nf_flow_vlan_push() 547 vhdr->h_vlan_encapsulated_proto = skb->protocol; in nf_flow_vlan_push()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | en_tx.c | 106 struct vlan_ethhdr *vhdr = (struct vlan_ethhdr *)start; in mlx5e_insert_vlan() local 110 memcpy(&vhdr->addrs, skb->data, cpy1_sz); in mlx5e_insert_vlan() 111 vhdr->h_vlan_proto = skb->vlan_proto; in mlx5e_insert_vlan() 112 vhdr->h_vlan_TCI = cpu_to_be16(skb_vlan_tag_get(skb)); in mlx5e_insert_vlan() 113 unsafe_memcpy(&vhdr->h_vlan_encapsulated_proto, in mlx5e_insert_vlan()
|
| /linux/drivers/net/ethernet/intel/fm10k/ |
| H A D | fm10k_netdev.c | 525 struct vlan_hdr *vhdr; in fm10k_xmit_frame() local 545 vhdr = (struct vlan_hdr *)(skb->data + ETH_HLEN); in fm10k_xmit_frame() 550 ntohs(vhdr->h_vlan_TCI)); in fm10k_xmit_frame() 551 proto = vhdr->h_vlan_encapsulated_proto; in fm10k_xmit_frame()
|
| /linux/drivers/net/ethernet/intel/i40e/ |
| H A D | i40e_txrx.c | 3027 struct vlan_hdr *vhdr, _vhdr; in i40e_tx_prepare_vlan_flags() local 3029 vhdr = skb_header_pointer(skb, ETH_HLEN, sizeof(_vhdr), &_vhdr); in i40e_tx_prepare_vlan_flags() 3030 if (!vhdr) in i40e_tx_prepare_vlan_flags() 3033 protocol = vhdr->h_vlan_encapsulated_proto; in i40e_tx_prepare_vlan_flags() 3034 tx_flags |= ntohs(vhdr->h_vlan_TCI) << I40E_TX_FLAGS_VLAN_SHIFT; in i40e_tx_prepare_vlan_flags() 3048 struct vlan_ethhdr *vhdr; in i40e_tx_prepare_vlan_flags() local 3054 vhdr = skb_vlan_eth_hdr(skb); in i40e_tx_prepare_vlan_flags() 3055 vhdr->h_vlan_TCI = htons(tx_flags >> in i40e_tx_prepare_vlan_flags()
|
| /linux/net/core/ |
| H A D | skbuff.c | 6289 struct vlan_hdr *vhdr; in skb_vlan_untag() local 6304 vhdr = (struct vlan_hdr *)skb->data; in skb_vlan_untag() 6305 vlan_tci = ntohs(vhdr->h_vlan_TCI); in skb_vlan_untag() 6309 vlan_set_encap_proto(skb, vhdr); in skb_vlan_untag() 7460 struct vlan_hdr vhdr, *vh; in __vlan_get_protocol_offset() local 7463 sizeof(vhdr), &vhdr); in __vlan_get_protocol_offset()
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_discovery.c | 594 struct vcn_info_header *vhdr = in amdgpu_discovery_table_check() local 596 act_val = le32_to_cpu(vhdr->table_id); in amdgpu_discovery_table_check() 598 table_size = le32_to_cpu(vhdr->size_bytes); in amdgpu_discovery_table_check()
|
| /linux/drivers/net/ethernet/renesas/ |
| H A D | ravb_main.c | 2098 struct vlan_hdr vhdr, *vh; in ravb_can_tx_csum_gbeth() local 2100 vh = skb_header_pointer(skb, ETH_HLEN, sizeof(vhdr), &vhdr); in ravb_can_tx_csum_gbeth()
|
| /linux/net/packet/ |
| H A D | af_packet.c | 543 struct vlan_hdr vhdr, *vh; in vlan_get_tci() local 564 sizeof(vhdr), &vhdr); in vlan_get_tci()
|
| /linux/drivers/net/ethernet/intel/ixgbe/ |
| H A D | ixgbe_main.c | 9415 struct vlan_hdr *vhdr, _vhdr; in ixgbe_xmit_frame_ring() local 9416 vhdr = skb_header_pointer(skb, ETH_HLEN, sizeof(_vhdr), &_vhdr); in ixgbe_xmit_frame_ring() 9417 if (!vhdr) in ixgbe_xmit_frame_ring() 9420 tx_flags |= ntohs(vhdr->h_vlan_TCI) << in ixgbe_xmit_frame_ring() 9460 struct vlan_ethhdr *vhdr; in ixgbe_xmit_frame_ring() local 9464 vhdr = skb_vlan_eth_hdr(skb); in ixgbe_xmit_frame_ring() 9465 vhdr->h_vlan_TCI = htons(tx_flags >> in ixgbe_xmit_frame_ring()
|
| /linux/drivers/net/ethernet/hisilicon/hns3/ |
| H A D | hns3_enet.c | 1508 struct vlan_ethhdr *vhdr; in hns3_handle_vtags() local 1555 vhdr = skb_vlan_eth_hdr(skb); in hns3_handle_vtags() 1556 vhdr->h_vlan_TCI |= cpu_to_be16((skb->priority << VLAN_PRIO_SHIFT) in hns3_handle_vtags()
|
| /linux/drivers/net/ethernet/broadcom/bnx2x/ |
| H A D | bnx2x_cmn.c | 1939 struct vlan_ethhdr *vhdr = skb_vlan_eth_hdr(skb); in bnx2x_select_queue() local 1941 ether_type = ntohs(vhdr->h_vlan_encapsulated_proto); in bnx2x_select_queue()
|
| /linux/drivers/net/ethernet/freescale/ |
| H A D | fec_main.c | 4399 struct vlan_ethhdr *vhdr = skb_vlan_eth_hdr(skb); in fec_enet_select_queue() local 4401 vlan_tag = ntohs(vhdr->h_vlan_TCI); in fec_enet_select_queue()
|