Searched refs:vnet_hdr (Results 1 – 1 of 1) sorted by relevance
/net/packet/ |
D | af_packet.c | 2158 struct virtio_net_hdr_mrg_rxbuf vnet_hdr = { .num_buffers = 0 }; in packet_rcv_vnet() local 2164 if (virtio_net_hdr_from_skb(skb, (struct virtio_net_hdr *)&vnet_hdr, vio_le(), true, 0)) in packet_rcv_vnet() 2167 return memcpy_to_msg(msg, (void *)&vnet_hdr, vnet_hdr_sz); in packet_rcv_vnet() 2603 static int __packet_snd_vnet_parse(struct virtio_net_hdr *vnet_hdr, size_t len) in __packet_snd_vnet_parse() argument 2605 if ((vnet_hdr->flags & VIRTIO_NET_HDR_F_NEEDS_CSUM) && in __packet_snd_vnet_parse() 2606 (__virtio16_to_cpu(vio_le(), vnet_hdr->csum_start) + in __packet_snd_vnet_parse() 2607 __virtio16_to_cpu(vio_le(), vnet_hdr->csum_offset) + 2 > in __packet_snd_vnet_parse() 2608 __virtio16_to_cpu(vio_le(), vnet_hdr->hdr_len))) in __packet_snd_vnet_parse() 2609 vnet_hdr->hdr_len = __cpu_to_virtio16(vio_le(), in __packet_snd_vnet_parse() 2610 __virtio16_to_cpu(vio_le(), vnet_hdr->csum_start) + in __packet_snd_vnet_parse() [all …]
|