diff options
| author | Eric Dumazet <[email protected]> | 2015-05-26 15:55:28 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2015-05-27 03:21:29 +0000 |
| commit | d6a4e26afb80c049e7f94e1b7b506dcda61eee88 (patch) | |
| tree | 809c23a70ad711aa0f1456068cb73f9c1ac11da9 /net/ipv4/sysctl_net_ipv4.c | |
| parent | tcp: fix/cleanup inet_ehash_locks_alloc() (diff) | |
| download | kernel-d6a4e26afb80c049e7f94e1b7b506dcda61eee88.tar.gz kernel-d6a4e26afb80c049e7f94e1b7b506dcda61eee88.zip | |
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 <[email protected]>
Cc: Neal Cardwell <[email protected]>
Cc: Herbert Xu <[email protected]>
Acked-by: Neal Cardwell <[email protected]>
Acked-by: Herbert Xu <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/sysctl_net_ipv4.c')
| -rw-r--r-- | net/ipv4/sysctl_net_ipv4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/sysctl_net_ipv4.c b/net/ipv4/sysctl_net_ipv4.c index 841de32f1fee..e64892769607 100644 --- a/net/ipv4/sysctl_net_ipv4.c +++ b/net/ipv4/sysctl_net_ipv4.c @@ -702,7 +702,7 @@ static struct ctl_table ipv4_table[] = { .maxlen = sizeof(int), .mode = 0644, .proc_handler = proc_dointvec_minmax, - .extra1 = &zero, + .extra1 = &one, .extra2 = &gso_max_segs, }, { |
