Searched refs:vnet_hdr_len (Results 1 – 2 of 2) sorted by relevance
647 int vnet_hdr_len = 0; in tap_get_user() local655 vnet_hdr_len = READ_ONCE(q->vnet_hdr_sz); in tap_get_user()658 if (len < vnet_hdr_len) in tap_get_user()660 len -= vnet_hdr_len; in tap_get_user()665 iov_iter_advance(from, vnet_hdr_len - sizeof(vnet_hdr)); in tap_get_user()735 if (vnet_hdr_len) { in tap_get_user()795 int vnet_hdr_len = 0; in tap_put_user() local803 vnet_hdr_len = READ_ONCE(q->vnet_hdr_sz); in tap_put_user()804 if (iov_iter_count(iter) < vnet_hdr_len) in tap_put_user()816 iov_iter_advance(iter, vnet_hdr_len - sizeof(vnet_hdr)); in tap_put_user()[all …]
3425 int vnet_hdr_len = READ_ONCE(pkt_sk(sk)->vnet_hdr_sz); in packet_recvmsg() local3466 if (vnet_hdr_len) { in packet_recvmsg()3467 err = packet_rcv_vnet(msg, skb, &len, vnet_hdr_len); in packet_recvmsg()3560 err = vnet_hdr_len + ((flags&MSG_TRUNC) ? skb->len : copied); in packet_recvmsg()