Searched refs:vlan_hlen (Results 1 – 4 of 4) sorted by relevance
47 u8 vlan_hlen = 0; in nft_payload_copy_vlan() local52 vlan_hlen += VLAN_HLEN; in nft_payload_copy_vlan()55 if (offset < VLAN_ETH_HLEN + vlan_hlen) { in nft_payload_copy_vlan()58 if (vlan_hlen && in nft_payload_copy_vlan()64 if (offset + len > VLAN_ETH_HLEN + vlan_hlen) in nft_payload_copy_vlan()65 ethlen -= offset + len - VLAN_ETH_HLEN - vlan_hlen; in nft_payload_copy_vlan()67 memcpy(dst_u8, vlanh + offset - vlan_hlen, ethlen); in nft_payload_copy_vlan()74 offset = ETH_HLEN + vlan_hlen; in nft_payload_copy_vlan()76 offset -= VLAN_HLEN + vlan_hlen; in nft_payload_copy_vlan()
169 int vlan_hlen) in virtio_net_hdr_from_skb() argument195 skb_checksum_start_offset(skb) + vlan_hlen); in virtio_net_hdr_from_skb()
2081 int vlan_hlen = 0; in tun_put_user() local2085 vlan_hlen = VLAN_HLEN; in tun_put_user()2090 total = skb->len + vlan_hlen + vnet_hdr_sz; in tun_put_user()2114 vlan_hlen)) { in tun_put_user()2134 if (vlan_hlen) { in tun_put_user()2157 dev_sw_netstats_tx_add(tun->dev, 1, skb->len + vlan_hlen); in tun_put_user()
789 int vlan_hlen = skb_vlan_tag_present(skb) ? VLAN_HLEN : 0; in tap_put_user() local798 vlan_hlen)) in tap_put_user()