Searched refs:vnet_hdr (Results 1 – 3 of 3) sorted by relevance
| /linux/net/packet/ |
| H A D | af_packet.c | 2090 struct virtio_net_hdr_mrg_rxbuf vnet_hdr = { .num_buffers = 0 }; in packet_rcv_vnet() local 2096 if (virtio_net_hdr_from_skb(skb, (struct virtio_net_hdr *)&vnet_hdr, vio_le(), true, 0)) in packet_rcv_vnet() 2099 return memcpy_to_msg(msg, (void *)&vnet_hdr, vnet_hdr_sz); in packet_rcv_vnet() 2529 static int __packet_snd_vnet_parse(struct virtio_net_hdr *vnet_hdr, size_t len) in __packet_snd_vnet_parse() argument 2531 if ((vnet_hdr->flags & VIRTIO_NET_HDR_F_NEEDS_CSUM) && in __packet_snd_vnet_parse() 2532 (__virtio16_to_cpu(vio_le(), vnet_hdr->csum_start) + in __packet_snd_vnet_parse() 2533 __virtio16_to_cpu(vio_le(), vnet_hdr->csum_offset) + 2 > in __packet_snd_vnet_parse() 2534 __virtio16_to_cpu(vio_le(), vnet_hdr->hdr_len))) in __packet_snd_vnet_parse() 2535 vnet_hdr->hdr_len = __cpu_to_virtio16(vio_le(), in __packet_snd_vnet_parse() 2536 __virtio16_to_cpu(vio_le(), vnet_hdr->csum_start) + in __packet_snd_vnet_parse() [all …]
|
| /linux/tools/testing/selftests/net/ |
| H A D | tun.c | 891 struct virtio_net_hdr_v1_hash_tunnel *vnet_hdr) in receive_gso_packet_from_tun() argument 927 memcpy(vnet_hdr, buf, TUN_VNET_TNL_SIZE); in receive_gso_packet_from_tun() 953 struct virtio_net_hdr_v1_hash_tunnel vnet_hdr = { 0 }; in TEST_F() local 954 struct virtio_net_hdr_v1 *vh = &vnet_hdr.hash_hdr.hdr; in TEST_F() 960 memset(&vnet_hdr, 0, sizeof(vnet_hdr)); in TEST_F() 961 ret = receive_gso_packet_from_tun(self, variant, &vnet_hdr); in TEST_F()
|
| /linux/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()
|