Lines Matching refs:gso
704 struct virtio_net_hdr *gso; in vhost_net_build_xdp() local
736 gso = buf; in vhost_net_build_xdp()
738 gso = buf + pad - sock_hlen; in vhost_net_build_xdp()
741 if ((gso->flags & VIRTIO_NET_HDR_F_NEEDS_CSUM) && in vhost_net_build_xdp()
742 vhost16_to_cpu(vq, gso->csum_start) + in vhost_net_build_xdp()
743 vhost16_to_cpu(vq, gso->csum_offset) + 2 > in vhost_net_build_xdp()
744 vhost16_to_cpu(vq, gso->hdr_len)) { in vhost_net_build_xdp()
745 gso->hdr_len = cpu_to_vhost16(vq, in vhost_net_build_xdp()
746 vhost16_to_cpu(vq, gso->csum_start) + in vhost_net_build_xdp()
747 vhost16_to_cpu(vq, gso->csum_offset) + 2); in vhost_net_build_xdp()
749 if (vhost16_to_cpu(vq, gso->hdr_len) > len) { in vhost_net_build_xdp()