diff options
author | Eric Dumazet <edumazet@google.com> | 2017-10-26 21:54:59 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-27 16:35:42 +0900 |
commit | b510f0d23a47c3d1f074fe583e7867dc4918fe02 (patch) | |
tree | 290d8eac086b801caa8bfe35fff54d82d5571585 /net/ipv4/tcp_output.c | |
parent | 2c04ac8ae0b61e0780a30b7069a11bb202b21f26 (diff) | |
download | linux-stable-b510f0d23a47c3d1f074fe583e7867dc4918fe02.tar.gz linux-stable-b510f0d23a47c3d1f074fe583e7867dc4918fe02.tar.bz2 linux-stable-b510f0d23a47c3d1f074fe583e7867dc4918fe02.zip |
tcp: Namespace-ify sysctl_tcp_slow_start_after_idle
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_output.c')
-rw-r--r-- | net/ipv4/tcp_output.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index 21713836d46a..bdc288a06f94 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c @@ -62,9 +62,6 @@ int sysctl_tcp_limit_output_bytes __read_mostly = 262144; */ int sysctl_tcp_tso_win_divisor __read_mostly = 3; -/* By default, RFC2861 behavior. */ -int sysctl_tcp_slow_start_after_idle __read_mostly = 1; - static bool tcp_write_xmit(struct sock *sk, unsigned int mss_now, int nonagle, int push_one, gfp_t gfp); @@ -1690,7 +1687,7 @@ static void tcp_cwnd_validate(struct sock *sk, bool is_cwnd_limited) if (tp->packets_out > tp->snd_cwnd_used) tp->snd_cwnd_used = tp->packets_out; - if (sysctl_tcp_slow_start_after_idle && + if (sock_net(sk)->ipv4.sysctl_tcp_slow_start_after_idle && (s32)(tcp_jiffies32 - tp->snd_cwnd_stamp) >= inet_csk(sk)->icsk_rto && !ca_ops->cong_control) tcp_cwnd_application_limited(sk); |