Home
last modified time | relevance | path

Searched refs:vnet_hdr_len (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.4/drivers/net/
Dtap.c632 int vnet_hdr_len = 0; in tap_get_user() local
639 vnet_hdr_len = READ_ONCE(q->vnet_hdr_sz); in tap_get_user()
642 if (len < vnet_hdr_len) in tap_get_user()
644 len -= vnet_hdr_len; in tap_get_user()
649 iov_iter_advance(from, vnet_hdr_len - sizeof(vnet_hdr)); in tap_get_user()
708 if (vnet_hdr_len) { in tap_get_user()
772 int vnet_hdr_len = 0; in tap_put_user() local
780 vnet_hdr_len = READ_ONCE(q->vnet_hdr_sz); in tap_put_user()
781 if (iov_iter_count(iter) < vnet_hdr_len) in tap_put_user()
793 iov_iter_advance(iter, vnet_hdr_len - sizeof(vnet_hdr)); in tap_put_user()
[all …]
/Linux-v5.4/net/packet/
Daf_packet.c3300 int vnet_hdr_len = 0; in packet_recvmsg() local
3345 vnet_hdr_len = sizeof(struct virtio_net_hdr); in packet_recvmsg()
3429 err = vnet_hdr_len + ((flags&MSG_TRUNC) ? skb->len : copied); in packet_recvmsg()