Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/net/
Dtap.c647 int vnet_hdr_len = 0; in tap_get_user() local
655 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() local
803 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 …]
/linux-6.6.21/net/packet/
Daf_packet.c3425 int vnet_hdr_len = READ_ONCE(pkt_sk(sk)->vnet_hdr_sz); in packet_recvmsg() local
3466 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()