Searched refs:vnet_hdr (Results 1 – 2 of 2) sorted by relevance
| /linux-6.15/net/packet/ |
| H A D | af_packet.c | 2589 vnet_hdr->hdr_len = __cpu_to_virtio16(vio_le(), in __packet_snd_vnet_parse() 2608 if (!copy_from_iter_full(vnet_hdr, sizeof(*vnet_hdr), &msg->msg_iter)) in packet_snd_vnet_parse() 2611 ret = __packet_snd_vnet_parse(vnet_hdr, *len); in packet_snd_vnet_parse() 2774 struct virtio_net_hdr *vnet_hdr = NULL; in tpacket_snd() local 2869 vnet_hdr = data; in tpacket_snd() 2873 __packet_snd_vnet_parse(vnet_hdr, tp_len)) { in tpacket_snd() 2878 vnet_hdr->hdr_len); in tpacket_snd() 2920 virtio_net_hdr_set_proto(skb, vnet_hdr); in tpacket_snd() 3004 struct virtio_net_hdr vnet_hdr = { 0 }; in packet_snd() local 3065 if (!vnet_hdr.gso_type && in packet_snd() [all …]
|
| /linux-6.15/drivers/net/ |
| H A D | tap.c | 581 struct virtio_net_hdr vnet_hdr = { 0 }; in tap_get_user() local 593 hdr_len = tun_vnet_hdr_get(vnet_hdr_len, q->flags, from, &vnet_hdr); in tap_get_user() 651 err = tun_vnet_hdr_to_skb(q->flags, skb, &vnet_hdr); in tap_get_user() 714 struct virtio_net_hdr vnet_hdr; in tap_put_user() local 718 ret = tun_vnet_hdr_from_skb(q->flags, NULL, skb, &vnet_hdr); in tap_put_user() 722 ret = tun_vnet_hdr_put(vnet_hdr_len, iter, &vnet_hdr); in tap_put_user()
|