Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/net/
Dtun.c194 int vnet_hdr_sz; member
1705 int vnet_hdr_sz = READ_ONCE(tun->vnet_hdr_sz); in tun_get_user() local
1707 if (len < vnet_hdr_sz) in tun_get_user()
1709 len -= vnet_hdr_sz; in tun_get_user()
1720 iov_iter_advance(from, vnet_hdr_sz - sizeof(gso)); in tun_get_user()
1983 int vnet_hdr_sz = 0; in tun_put_user_xdp() local
1991 vnet_hdr_sz = READ_ONCE(tun->vnet_hdr_sz); in tun_put_user_xdp()
1992 if (unlikely(iov_iter_count(iter) < vnet_hdr_sz)) in tun_put_user_xdp()
1997 iov_iter_advance(iter, vnet_hdr_sz - sizeof(gso)); in tun_put_user_xdp()
2000 ret = copy_to_iter(xdp_frame->data, size, iter) + vnet_hdr_sz; in tun_put_user_xdp()
[all …]
Dtap.c530 q->vnet_hdr_sz = sizeof(struct virtio_net_hdr); in tap_open()
637 vnet_hdr_len = READ_ONCE(q->vnet_hdr_sz); in tap_get_user()
778 vnet_hdr_len = READ_ONCE(q->vnet_hdr_sz); in tap_put_user()
1042 s = q->vnet_hdr_sz; in tap_ioctl()
1053 q->vnet_hdr_sz = s; in tap_ioctl()
1147 vnet_hdr_len = READ_ONCE(q->vnet_hdr_sz); in tap_get_user_xdp()
/Linux-v5.10/include/linux/
Dif_tap.h65 int vnet_hdr_sz; member