aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_ipv4.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2017-10-27 10:47:23 -0400
committerDavid S. Miller <davem@davemloft.net>2017-10-28 06:24:38 -0400
commitd06a99045837d3f4d5431793c4c390b0daf2a08d (patch)
tree27cb4b6e7f5f54a2f6356dc1ec5c263b216eb26e /net/ipv4/tcp_ipv4.c
parent4540c0cf98b8892a642d2453eec20ae3eb5696fb (diff)
tcp: Namespace-ify sysctl_tcp_tso_win_divisor
Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
-rw-r--r--net/ipv4/tcp_ipv4.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c
index 27f376b90913..284ff16148df 100644
--- a/net/ipv4/tcp_ipv4.c
+++ b/net/ipv4/tcp_ipv4.c
@@ -2494,6 +2494,11 @@ static int __net_init tcp_sk_init(struct net *net)
2494 net->ipv4.sysctl_tcp_adv_win_scale = 1; 2494 net->ipv4.sysctl_tcp_adv_win_scale = 1;
2495 net->ipv4.sysctl_tcp_frto = 2; 2495 net->ipv4.sysctl_tcp_frto = 2;
2496 net->ipv4.sysctl_tcp_moderate_rcvbuf = 1; 2496 net->ipv4.sysctl_tcp_moderate_rcvbuf = 1;
2497 /* This limits the percentage of the congestion window which we
2498 * will allow a single TSO frame to consume. Building TSO frames
2499 * which are too large can cause TCP streams to be bursty.
2500 */
2501 net->ipv4.sysctl_tcp_tso_win_divisor = 3;
2497 2502
2498 net->ipv4.sysctl_tcp_fastopen = TFO_CLIENT_ENABLE; 2503 net->ipv4.sysctl_tcp_fastopen = TFO_CLIENT_ENABLE;
2499 spin_lock_init(&net->ipv4.tcp_fastopen_ctx_lock); 2504 spin_lock_init(&net->ipv4.tcp_fastopen_ctx_lock);