Lines Matching refs:gso
669 struct virtio_net_hdr *gso; in vhost_net_build_xdp() local
694 copied = copy_from_iter(buf + offsetof(struct tun_xdp_hdr, gso), in vhost_net_build_xdp()
702 gso = &hdr->gso; in vhost_net_build_xdp()
707 if ((gso->flags & VIRTIO_NET_HDR_F_NEEDS_CSUM) && in vhost_net_build_xdp()
708 vhost16_to_cpu(vq, gso->csum_start) + in vhost_net_build_xdp()
709 vhost16_to_cpu(vq, gso->csum_offset) + 2 > in vhost_net_build_xdp()
710 vhost16_to_cpu(vq, gso->hdr_len)) { in vhost_net_build_xdp()
711 gso->hdr_len = cpu_to_vhost16(vq, in vhost_net_build_xdp()
712 vhost16_to_cpu(vq, gso->csum_start) + in vhost_net_build_xdp()
713 vhost16_to_cpu(vq, gso->csum_offset) + 2); in vhost_net_build_xdp()
715 if (vhost16_to_cpu(vq, gso->hdr_len) > len) { in vhost_net_build_xdp()