Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/net/
Dtun.c191 int vnet_hdr_sz; member
1771 int vnet_hdr_sz = READ_ONCE(tun->vnet_hdr_sz); in tun_get_user() local
1773 if (len < vnet_hdr_sz) in tun_get_user()
1775 len -= vnet_hdr_sz; in tun_get_user()
1786 iov_iter_advance(from, vnet_hdr_sz - sizeof(gso)); in tun_get_user()
2059 int vnet_hdr_sz = 0; in tun_put_user_xdp() local
2066 vnet_hdr_sz = READ_ONCE(tun->vnet_hdr_sz); in tun_put_user_xdp()
2067 if (unlikely(iov_iter_count(iter) < vnet_hdr_sz)) in tun_put_user_xdp()
2072 iov_iter_advance(iter, vnet_hdr_sz - sizeof(gso)); in tun_put_user_xdp()
2075 ret = copy_to_iter(xdp_frame->data, size, iter) + vnet_hdr_sz; in tun_put_user_xdp()
[all …]
Dtap.c542 q->vnet_hdr_sz = sizeof(struct virtio_net_hdr); in tap_open()
655 vnet_hdr_len = READ_ONCE(q->vnet_hdr_sz); in tap_get_user()
803 vnet_hdr_len = READ_ONCE(q->vnet_hdr_sz); in tap_put_user()
1076 s = q->vnet_hdr_sz; in tap_ioctl()
1087 q->vnet_hdr_sz = s; in tap_ioctl()
1181 vnet_hdr_len = READ_ONCE(q->vnet_hdr_sz); in tap_get_user_xdp()
/Linux-v6.6/net/packet/
Daf_packet.c2095 size_t *len, int vnet_hdr_sz) in packet_rcv_vnet() argument
2099 if (*len < vnet_hdr_sz) in packet_rcv_vnet()
2101 *len -= vnet_hdr_sz; in packet_rcv_vnet()
2106 return memcpy_to_msg(msg, (void *)&vnet_hdr, vnet_hdr_sz); in packet_rcv_vnet()
2255 int vnet_hdr_sz = 0; in tpacket_rcv() local
2313 vnet_hdr_sz = READ_ONCE(po->vnet_hdr_sz); in tpacket_rcv()
2314 if (vnet_hdr_sz) in tpacket_rcv()
2315 netoff += vnet_hdr_sz; in tpacket_rcv()
2341 vnet_hdr_sz = 0; in tpacket_rcv()
2355 vnet_hdr_sz = 0; in tpacket_rcv()
[all …]
Dinternal.h121 u8 vnet_hdr_sz; member
Ddiag.c30 if (READ_ONCE(po->vnet_hdr_sz)) in pdiag_put_info()
/Linux-v6.6/include/linux/
Dif_tap.h66 int vnet_hdr_sz; member