Searched refs:vnet_hdr_len (Results 1 – 2 of 2) sorted by relevance
632 int vnet_hdr_len = 0; in tap_get_user() local639 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() local780 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 …]
3300 int vnet_hdr_len = 0; in packet_recvmsg() local3345 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()