From: Eric Dumazet Date: Tue, 26 May 2015 15:55:28 +0000 (-0700) Subject: tcp: tcp_tso_autosize() minimum is one packet X-Git-Tag: omap-for-v4.3/legacy-v2-signed~163^2~207 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6a4e26afb80c049e7f94e1b7b506dcda61eee88;p=pandora-kernel.git tcp: tcp_tso_autosize() minimum is one packet By making sure sk->sk_gso_max_segs minimal value is one, and sysctl_tcp_min_tso_segs minimal value is one as well, tcp_tso_autosize() will return a non zero value. We can then revert 843925f33fcc293d80acf2c5c8a78adf3344d49b ("tcp: Do not apply TSO segment limit to non-TSO packets") and save few cpu cycles in fast path. Signed-off-by: Eric Dumazet Cc: Neal Cardwell Cc: Herbert Xu Acked-by: Neal Cardwell Acked-by: Herbert Xu Signed-off-by: David S. Miller --- Reading git-diff-tree failed