Lines Matching refs:gso
1712 struct virtio_net_hdr gso = { 0 }; in tun_get_user() local
1737 if (!copy_from_iter_full(&gso, sizeof(gso), from)) in tun_get_user()
1740 if ((gso.flags & VIRTIO_NET_HDR_F_NEEDS_CSUM) && in tun_get_user()
1741 …tun16_to_cpu(tun, gso.csum_start) + tun16_to_cpu(tun, gso.csum_offset) + 2 > tun16_to_cpu(tun, gso… in tun_get_user()
1742 …gso.hdr_len = cpu_to_tun16(tun, tun16_to_cpu(tun, gso.csum_start) + tun16_to_cpu(tun, gso.csum_off… in tun_get_user()
1744 if (tun16_to_cpu(tun, gso.hdr_len) > len) in tun_get_user()
1746 iov_iter_advance(from, vnet_hdr_sz - sizeof(gso)); in tun_get_user()
1752 (gso.hdr_len && tun16_to_cpu(tun, gso.hdr_len) < ETH_HLEN))) in tun_get_user()
1765 copylen = gso.hdr_len ? tun16_to_cpu(tun, gso.hdr_len) : GOODCOPY_LEN; in tun_get_user()
1779 skb = tun_build_skb(tun, tfile, from, &gso, len, &skb_xdp); in tun_get_user()
1789 if (tun16_to_cpu(tun, gso.hdr_len) > good_linear) in tun_get_user()
1792 linear = tun16_to_cpu(tun, gso.hdr_len); in tun_get_user()
1835 if (virtio_net_hdr_to_skb(skb, &gso, tun_is_little_endian(tun))) { in tun_get_user()
2009 struct virtio_net_hdr gso = { 0 }; in tun_put_user_xdp() local
2014 if (unlikely(copy_to_iter(&gso, sizeof(gso), iter) != in tun_put_user_xdp()
2015 sizeof(gso))) in tun_put_user_xdp()
2017 iov_iter_advance(iter, vnet_hdr_sz - sizeof(gso)); in tun_put_user_xdp()
2064 struct virtio_net_hdr gso; in tun_put_user() local
2069 if (virtio_net_hdr_from_skb(skb, &gso, in tun_put_user()
2075 sinfo->gso_type, tun16_to_cpu(tun, gso.gso_size), in tun_put_user()
2076 tun16_to_cpu(tun, gso.hdr_len)); in tun_put_user()
2080 min((int)tun16_to_cpu(tun, gso.hdr_len), 64), true); in tun_put_user()
2085 if (copy_to_iter(&gso, sizeof(gso), iter) != sizeof(gso)) in tun_put_user()
2088 iov_iter_advance(iter, vnet_hdr_sz - sizeof(gso)); in tun_put_user()
2388 struct virtio_net_hdr *gso = &hdr->gso; in tun_xdp_one() local
2399 if (gso->gso_type) { in tun_xdp_one()
2445 if (virtio_net_hdr_to_skb(skb, gso, tun_is_little_endian(tun))) { in tun_xdp_one()