Lines Matching defs:vnet_hdr

2090 	struct virtio_net_hdr_mrg_rxbuf vnet_hdr = { .num_buffers = 0 };
2096 if (virtio_net_hdr_from_skb(skb, (struct virtio_net_hdr *)&vnet_hdr, vio_le(), true, 0))
2099 return memcpy_to_msg(msg, (void *)&vnet_hdr, vnet_hdr_sz);
2529 static int __packet_snd_vnet_parse(struct virtio_net_hdr *vnet_hdr, size_t len)
2531 if ((vnet_hdr->flags & VIRTIO_NET_HDR_F_NEEDS_CSUM) &&
2532 (__virtio16_to_cpu(vio_le(), vnet_hdr->csum_start) +
2533 __virtio16_to_cpu(vio_le(), vnet_hdr->csum_offset) + 2 >
2534 __virtio16_to_cpu(vio_le(), vnet_hdr->hdr_len)))
2535 vnet_hdr->hdr_len = __cpu_to_virtio16(vio_le(),
2536 __virtio16_to_cpu(vio_le(), vnet_hdr->csum_start) +
2537 __virtio16_to_cpu(vio_le(), vnet_hdr->csum_offset) + 2);
2539 if (__virtio16_to_cpu(vio_le(), vnet_hdr->hdr_len) > len)
2546 struct virtio_net_hdr *vnet_hdr, int vnet_hdr_sz)
2554 if (!copy_from_iter_full(vnet_hdr, sizeof(*vnet_hdr), &msg->msg_iter))
2557 ret = __packet_snd_vnet_parse(vnet_hdr, *len);
2720 struct virtio_net_hdr *vnet_hdr = NULL;
2821 vnet_hdr = data;
2825 __packet_snd_vnet_parse(vnet_hdr, tp_len)) {
2830 vnet_hdr->hdr_len);
2868 if (virtio_net_hdr_to_skb(skb, vnet_hdr, vio_le())) {
2872 virtio_net_hdr_set_proto(skb, vnet_hdr);
2949 struct virtio_net_hdr vnet_hdr = { 0 };
2996 err = packet_snd_vnet_parse(msg, &len, &vnet_hdr, vnet_hdr_sz);
3010 if (!vnet_hdr.gso_type &&
3017 linear = __virtio16_to_cpu(vio_le(), vnet_hdr.hdr_len);
3051 if (!vnet_hdr.gso_type && (len > dev->mtu + reserve + extra_len) &&
3069 err = virtio_net_hdr_to_skb(skb, &vnet_hdr, vio_le());
3073 virtio_net_hdr_set_proto(skb, &vnet_hdr);