Searched refs:vnet_hdr (Results 1 – 1 of 1) sorted by relevance
/net/packet/ |
D | af_packet.c | 2063 struct virtio_net_hdr vnet_hdr; in packet_rcv_vnet() local 2065 if (*len < sizeof(vnet_hdr)) in packet_rcv_vnet() 2067 *len -= sizeof(vnet_hdr); in packet_rcv_vnet() 2069 if (virtio_net_hdr_from_skb(skb, &vnet_hdr, vio_le(), true, 0)) in packet_rcv_vnet() 2072 return memcpy_to_msg(msg, (void *)&vnet_hdr, sizeof(vnet_hdr)); in packet_rcv_vnet() 2500 static int __packet_snd_vnet_parse(struct virtio_net_hdr *vnet_hdr, size_t len) in __packet_snd_vnet_parse() argument 2502 if ((vnet_hdr->flags & VIRTIO_NET_HDR_F_NEEDS_CSUM) && in __packet_snd_vnet_parse() 2503 (__virtio16_to_cpu(vio_le(), vnet_hdr->csum_start) + in __packet_snd_vnet_parse() 2504 __virtio16_to_cpu(vio_le(), vnet_hdr->csum_offset) + 2 > in __packet_snd_vnet_parse() 2505 __virtio16_to_cpu(vio_le(), vnet_hdr->hdr_len))) in __packet_snd_vnet_parse() [all …]
|