Lines Matching refs:gso
690 struct virtio_net_hdr *gso; in vhost_net_build_xdp() local
717 offsetof(struct tun_xdp_hdr, gso), in vhost_net_build_xdp()
723 gso = &hdr->gso; in vhost_net_build_xdp()
725 if ((gso->flags & VIRTIO_NET_HDR_F_NEEDS_CSUM) && in vhost_net_build_xdp()
726 vhost16_to_cpu(vq, gso->csum_start) + in vhost_net_build_xdp()
727 vhost16_to_cpu(vq, gso->csum_offset) + 2 > in vhost_net_build_xdp()
728 vhost16_to_cpu(vq, gso->hdr_len)) { in vhost_net_build_xdp()
729 gso->hdr_len = cpu_to_vhost16(vq, in vhost_net_build_xdp()
730 vhost16_to_cpu(vq, gso->csum_start) + in vhost_net_build_xdp()
731 vhost16_to_cpu(vq, gso->csum_offset) + 2); in vhost_net_build_xdp()
733 if (vhost16_to_cpu(vq, gso->hdr_len) > len) in vhost_net_build_xdp()