| /linux/include/linux/ |
| H A D | virtio_net.h | 260 const struct virtio_net_hdr_v1_hash_tunnel *vhdr, in virtio_net_hdr_tnl_to_skb() argument 265 const struct virtio_net_hdr *hdr = (const struct virtio_net_hdr *)vhdr; in virtio_net_hdr_tnl_to_skb() 301 inner_nh = le16_to_cpu(vhdr->inner_nh_offset); in virtio_net_hdr_tnl_to_skb() 302 outer_th = le16_to_cpu(vhdr->outer_th_offset); in virtio_net_hdr_tnl_to_skb() 384 struct virtio_net_hdr_v1_hash_tunnel *vhdr, in virtio_net_hdr_tnl_from_skb() argument 390 struct virtio_net_hdr *hdr = (struct virtio_net_hdr *)vhdr; in virtio_net_hdr_tnl_from_skb() 405 vhdr->hash_hdr.hash_value_lo = 0; in virtio_net_hdr_tnl_from_skb() 406 vhdr->hash_hdr.hash_value_hi = 0; in virtio_net_hdr_tnl_from_skb() 407 vhdr->hash_hdr.hash_report = 0; in virtio_net_hdr_tnl_from_skb() 408 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/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 | 1278 struct nfqnl_msg_verdict_hdr *vhdr; in verdicthdr_get() local 1284 vhdr = nla_data(nfqa[NFQA_VERDICT_HDR]); in verdicthdr_get() 1285 verdict = ntohl(vhdr->verdict) & NF_VERDICT_MASK; in verdicthdr_get() 1288 return vhdr; in verdicthdr_get() 1303 struct nfqnl_msg_verdict_hdr *vhdr; in nfqnl_recv_verdict_batch() local 1313 vhdr = verdicthdr_get(nfqa); in nfqnl_recv_verdict_batch() 1314 if (!vhdr) in nfqnl_recv_verdict_batch() 1317 verdict = ntohl(vhdr->verdict); in nfqnl_recv_verdict_batch() 1318 maxid = ntohl(vhdr->id); in nfqnl_recv_verdict_batch() 1414 struct nfqnl_msg_verdict_hdr *vhdr; in nfqnl_recv_verdict() local [all …]
|
| /linux/net/batman-adv/ |
| 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()
|
| /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/thunderbolt/ |
| H A D | main.c | 1020 struct vlan_hdr *vhdr, vh; in tbnet_xmit_csum_and_map() local 1022 vhdr = skb_header_pointer(skb, ETH_HLEN, sizeof(vh), &vh); in tbnet_xmit_csum_and_map() 1023 if (!vhdr) in tbnet_xmit_csum_and_map() 1026 protocol = vhdr->h_vlan_encapsulated_proto; in tbnet_xmit_csum_and_map()
|
| /linux/drivers/net/ethernet/intel/i40e/ |
| H A D | i40e_txrx.c | 3026 struct vlan_hdr *vhdr, _vhdr; in i40e_tx_prepare_vlan_flags() local 3028 vhdr = skb_header_pointer(skb, ETH_HLEN, sizeof(_vhdr), &_vhdr); in i40e_tx_prepare_vlan_flags() 3029 if (!vhdr) in i40e_tx_prepare_vlan_flags() 3032 protocol = vhdr->h_vlan_encapsulated_proto; in i40e_tx_prepare_vlan_flags() 3033 tx_flags |= ntohs(vhdr->h_vlan_TCI) << I40E_TX_FLAGS_VLAN_SHIFT; in i40e_tx_prepare_vlan_flags() 3047 struct vlan_ethhdr *vhdr; in i40e_tx_prepare_vlan_flags() local 3053 vhdr = skb_vlan_eth_hdr(skb); in i40e_tx_prepare_vlan_flags() 3054 vhdr->h_vlan_TCI = htons(tx_flags >> in i40e_tx_prepare_vlan_flags()
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_discovery.c | 601 struct vcn_info_header *vhdr = in amdgpu_discovery_init() local 604 if (le32_to_cpu(vhdr->table_id) != VCN_INFO_TABLE_ID) { in amdgpu_discovery_init() 612 le32_to_cpu(vhdr->size_bytes), checksum)) { in amdgpu_discovery_init()
|
| /linux/drivers/net/ethernet/renesas/ |
| H A D | ravb_main.c | 2087 struct vlan_hdr vhdr, *vh; in ravb_can_tx_csum_gbeth() local 2089 vh = skb_header_pointer(skb, ETH_HLEN, sizeof(vhdr), &vhdr); in ravb_can_tx_csum_gbeth()
|
| /linux/net/core/ |
| H A D | skbuff.c | 6267 struct vlan_hdr *vhdr; in skb_vlan_untag() local 6282 vhdr = (struct vlan_hdr *)skb->data; in skb_vlan_untag() 6283 vlan_tci = ntohs(vhdr->h_vlan_TCI); in skb_vlan_untag() 6287 vlan_set_encap_proto(skb, vhdr); in skb_vlan_untag()
|
| /linux/drivers/net/ethernet/intel/ixgbe/ |
| H A D | ixgbe_main.c | 9407 struct vlan_hdr *vhdr, _vhdr; in ixgbe_xmit_frame_ring() local 9408 vhdr = skb_header_pointer(skb, ETH_HLEN, sizeof(_vhdr), &_vhdr); in ixgbe_xmit_frame_ring() 9409 if (!vhdr) in ixgbe_xmit_frame_ring() 9412 tx_flags |= ntohs(vhdr->h_vlan_TCI) << in ixgbe_xmit_frame_ring() 9452 struct vlan_ethhdr *vhdr; in ixgbe_xmit_frame_ring() local 9456 vhdr = skb_vlan_eth_hdr(skb); in ixgbe_xmit_frame_ring() 9457 vhdr->h_vlan_TCI = htons(tx_flags >> in ixgbe_xmit_frame_ring()
|
| /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()
|