Searched refs:vnet_hdr_sz (Results 1 – 6 of 6) sorted by relevance
191 int vnet_hdr_sz; member1771 int vnet_hdr_sz = READ_ONCE(tun->vnet_hdr_sz); in tun_get_user() local1773 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() local2066 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 …]
542 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()
2095 size_t *len, int vnet_hdr_sz) in packet_rcv_vnet() argument2099 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() local2313 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 …]
121 u8 vnet_hdr_sz; member
30 if (READ_ONCE(po->vnet_hdr_sz)) in pdiag_put_info()
66 int vnet_hdr_sz; member