Lines Matching refs:vnet_hdr_sz
191 int vnet_hdr_sz; member
1675 int vnet_hdr_sz = READ_ONCE(tun->vnet_hdr_sz); in tun_get_user() local
1677 if (len < vnet_hdr_sz) in tun_get_user()
1679 len -= vnet_hdr_sz; in tun_get_user()
1690 iov_iter_advance(from, vnet_hdr_sz - sizeof(gso)); in tun_get_user()
1948 int vnet_hdr_sz = 0; in tun_put_user_xdp() local
1955 vnet_hdr_sz = READ_ONCE(tun->vnet_hdr_sz); in tun_put_user_xdp()
1956 if (unlikely(iov_iter_count(iter) < vnet_hdr_sz)) in tun_put_user_xdp()
1961 iov_iter_advance(iter, vnet_hdr_sz - sizeof(gso)); in tun_put_user_xdp()
1964 ret = copy_to_iter(xdp_frame->data, size, iter) + vnet_hdr_sz; in tun_put_user_xdp()
1983 int vnet_hdr_sz = 0; in tun_put_user() local
1989 vnet_hdr_sz = READ_ONCE(tun->vnet_hdr_sz); in tun_put_user()
1991 total = skb->len + vlan_hlen + vnet_hdr_sz; in tun_put_user()
2007 if (vnet_hdr_sz) { in tun_put_user()
2010 if (iov_iter_count(iter) < vnet_hdr_sz) in tun_put_user()
2032 iov_iter_advance(iter, vnet_hdr_sz - sizeof(gso)); in tun_put_user()
2706 tun->vnet_hdr_sz = sizeof(struct virtio_net_hdr); in tun_set_iff()
2984 int vnet_hdr_sz; in __tun_chr_ioctl() local
3191 vnet_hdr_sz = tun->vnet_hdr_sz; in __tun_chr_ioctl()
3192 if (copy_to_user(argp, &vnet_hdr_sz, sizeof(vnet_hdr_sz))) in __tun_chr_ioctl()
3197 if (copy_from_user(&vnet_hdr_sz, argp, sizeof(vnet_hdr_sz))) { in __tun_chr_ioctl()
3201 if (vnet_hdr_sz < (int)sizeof(struct virtio_net_hdr)) { in __tun_chr_ioctl()
3206 tun->vnet_hdr_sz = vnet_hdr_sz; in __tun_chr_ioctl()