Re: tcp: Do not apply TSO segment limit to non-TSO packets

Herbert Xu
2015-01-16T10:50:20Z

On Fri, Jan 16, 2015 at 11:45:44AM +0100, Thomas Jarosch wrote:
>
> For backporting to -stable: Kernel 3.14 lacks tcp_tso_autosize().
> So I've borrowed that from 3.19-rc4+ and also added the max_segs variable.
> The final and tested code looks like this:

You don't need tcp_tso_autosize. Instead of testing max_segs just
test sk->sk_gso_max_segs.

Cheers,
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt