Home
last modified time | relevance | path

Searched refs:vnet_hdr (Results 1 – 3 of 3) sorted by relevance

/linux/net/packet/
H A Daf_packet.c2112 struct virtio_net_hdr_mrg_rxbuf vnet_hdr = { .num_buffers = 0 }; in packet_rcv_vnet() local
2118 if (virtio_net_hdr_from_skb(skb, (struct virtio_net_hdr *)&vnet_hdr, vio_le(), true, 0)) in packet_rcv_vnet()
2121 return memcpy_to_msg(msg, (void *)&vnet_hdr, vnet_hdr_sz); in packet_rcv_vnet()
2533 static int __packet_snd_vnet_parse(struct virtio_net_hdr *vnet_hdr, size_t len) in __packet_snd_vnet_parse() argument
2535 if ((vnet_hdr->flags & VIRTIO_NET_HDR_F_NEEDS_CSUM) && in __packet_snd_vnet_parse()
2536 (__virtio16_to_cpu(vio_le(), vnet_hdr->csum_start) + in __packet_snd_vnet_parse()
2537 __virtio16_to_cpu(vio_le(), vnet_hdr->csum_offset) + 2 > in __packet_snd_vnet_parse()
2538 __virtio16_to_cpu(vio_le(), vnet_hdr->hdr_len))) in __packet_snd_vnet_parse()
2539 vnet_hdr->hdr_len = __cpu_to_virtio16(vio_le(), in __packet_snd_vnet_parse()
2540 __virtio16_to_cpu(vio_le(), vnet_hdr in __packet_snd_vnet_parse()
2550 packet_snd_vnet_parse(struct msghdr * msg,size_t * len,struct virtio_net_hdr * vnet_hdr,int vnet_hdr_sz) packet_snd_vnet_parse() argument
2758 struct virtio_net_hdr vnet_hdr; tpacket_snd() local
3012 struct virtio_net_hdr vnet_hdr = { 0 }; packet_snd() local
[all...]
/linux/tools/testing/selftests/net/
H A Dtun.c1027 struct virtio_net_hdr_v1_hash_tunnel *vnet_hdr)
1063 memcpy(vnet_hdr, buf, TUN_VNET_TNL_SIZE);
1089 struct virtio_net_hdr_v1_hash_tunnel vnet_hdr = { 0 };
1090 struct virtio_net_hdr_v1 *vh = &vnet_hdr.hash_hdr.hdr;
1096 memset(&vnet_hdr, 0, sizeof(vnet_hdr));
1097 ret = receive_gso_packet_from_tun(self, variant, &vnet_hdr);
891 receive_gso_packet_from_tun(FIXTURE_DATA (tun_vnet_udptnl)* self,const FIXTURE_VARIANT (tun_vnet_udptnl)* variant,struct virtio_net_hdr_v1_hash_tunnel * vnet_hdr) receive_gso_packet_from_tun() argument
953 struct virtio_net_hdr_v1_hash_tunnel vnet_hdr = { 0 }; TEST_F() local
/linux/drivers/net/
H A Dtap.c581 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()