Home
last modified time | relevance | path

Searched refs:vnet_hdr_sz (Results 1 – 3 of 3) sorted by relevance

/Linux-v4.19/drivers/net/
Dtun.c228 int vnet_hdr_sz; member
1728 int vnet_hdr_sz = READ_ONCE(tun->vnet_hdr_sz); in tun_get_user() local
1730 if (len < vnet_hdr_sz) in tun_get_user()
1732 len -= vnet_hdr_sz; in tun_get_user()
1743 iov_iter_advance(from, vnet_hdr_sz - sizeof(gso)); in tun_get_user()
1980 int vnet_hdr_sz = 0; in tun_put_user_xdp() local
1988 vnet_hdr_sz = READ_ONCE(tun->vnet_hdr_sz); in tun_put_user_xdp()
1989 if (unlikely(iov_iter_count(iter) < vnet_hdr_sz)) in tun_put_user_xdp()
1994 iov_iter_advance(iter, vnet_hdr_sz - sizeof(gso)); in tun_put_user_xdp()
1997 ret = copy_to_iter(xdp_frame->data, size, iter) + vnet_hdr_sz; in tun_put_user_xdp()
[all …]
Dtap.c532 q->vnet_hdr_sz = sizeof(struct virtio_net_hdr); in tap_open()
639 vnet_hdr_len = READ_ONCE(q->vnet_hdr_sz); in tap_get_user()
780 vnet_hdr_len = READ_ONCE(q->vnet_hdr_sz); in tap_put_user()
1045 s = q->vnet_hdr_sz; in tap_ioctl()
1056 q->vnet_hdr_sz = s; in tap_ioctl()
/Linux-v4.19/include/linux/
Dif_tap.h66 int vnet_hdr_sz; member