]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: tcp_tso_autosize() minimum is one packet
authorEric Dumazet <edumazet@google.com>
Tue, 26 May 2015 15:55:28 +0000 (08:55 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 May 2015 03:21:29 +0000 (23:21 -0400)
commit6d5f18bde34ea1d8c9b8b49fc6fde70d4056caf8
tree809c23a70ad711aa0f1456068cb73f9c1ac11da9
parent06104d1cf9260beadeca1d4c31f53374f7e1ffce
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 c8dfd2a61600c6aa930debb0f1c5f8d5181b29c5
("tcp: Do not apply TSO segment limit to non-TSO packets")
and save few cpu cycles in fast path.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Neal Cardwell <ncardwell@google.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Acked-by: Neal Cardwell <ncardwell@google.com>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/sock.c
net/ipv4/sysctl_net_ipv4.c
net/ipv4/tcp_output.c