Lines Matching refs:gso

1751 	struct virtio_net_hdr gso = { 0 };
1777 if (!copy_from_iter_full(&gso, sizeof(gso), from))
1780 if ((gso.flags & VIRTIO_NET_HDR_F_NEEDS_CSUM) &&
1781 tun16_to_cpu(tun, gso.csum_start) + tun16_to_cpu(tun, gso.csum_offset) + 2 > tun16_to_cpu(tun, gso.hdr_len))
1782 gso.hdr_len = cpu_to_tun16(tun, tun16_to_cpu(tun, gso.csum_start) + tun16_to_cpu(tun, gso.csum_offset) + 2);
1784 if (tun16_to_cpu(tun, gso.hdr_len) > len)
1786 iov_iter_advance(from, vnet_hdr_sz - sizeof(gso));
1792 (gso.hdr_len && tun16_to_cpu(tun, gso.hdr_len) < ETH_HLEN)))
1805 copylen = gso.hdr_len ? tun16_to_cpu(tun, gso.hdr_len) : GOODCOPY_LEN;
1816 * (e.g gso or jumbo packet), we will do it at after
1819 skb = tun_build_skb(tun, tfile, from, &gso, len, &skb_xdp);
1828 if (tun16_to_cpu(tun, gso.hdr_len) > good_linear)
1831 linear = tun16_to_cpu(tun, gso.hdr_len);
1866 if (virtio_net_hdr_to_skb(skb, &gso, tun_is_little_endian(tun))) {
2064 struct virtio_net_hdr gso = { 0 };
2069 if (unlikely(copy_to_iter(&gso, sizeof(gso), iter) !=
2070 sizeof(gso)))
2072 iov_iter_advance(iter, vnet_hdr_sz - sizeof(gso));
2119 struct virtio_net_hdr gso;
2124 if (virtio_net_hdr_from_skb(skb, &gso,
2131 sinfo->gso_type, tun16_to_cpu(tun, gso.gso_size),
2132 tun16_to_cpu(tun, gso.hdr_len));
2136 min((int)tun16_to_cpu(tun, gso.hdr_len), 64), true);
2142 if (copy_to_iter(&gso, sizeof(gso), iter) != sizeof(gso))
2145 iov_iter_advance(iter, vnet_hdr_sz - sizeof(gso));
2444 struct virtio_net_hdr *gso = &hdr->gso;
2456 if (gso->gso_type) {
2502 if (virtio_net_hdr_to_skb(skb, gso, tun_is_little_endian(tun))) {