diff options
author | Eric Dumazet <edumazet@google.com> | 2017-10-27 00:54:59 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-27 03:35:42 -0400 |
commit | b510f0d23a47c3d1f074fe583e7867dc4918fe02 (patch) | |
tree | 290d8eac086b801caa8bfe35fff54d82d5571585 /net/ipv4/tcp_output.c | |
parent | 2c04ac8ae0b61e0780a30b7069a11bb202b21f26 (diff) |
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; | |||
62 | */ | 62 | */ |
63 | int sysctl_tcp_tso_win_divisor __read_mostly = 3; | 63 | int sysctl_tcp_tso_win_divisor __read_mostly = 3; |
64 | 64 | ||
65 | /* By default, RFC2861 behavior. */ | ||
66 | int sysctl_tcp_slow_start_after_idle __read_mostly = 1; | ||
67 | |||
68 | static bool tcp_write_xmit(struct sock *sk, unsigned int mss_now, int nonagle, | 65 | static bool tcp_write_xmit(struct sock *sk, unsigned int mss_now, int nonagle, |
69 | int push_one, gfp_t gfp); | 66 | int push_one, gfp_t gfp); |
70 | 67 | ||
@@ -1690,7 +1687,7 @@ static void tcp_cwnd_validate(struct sock *sk, bool is_cwnd_limited) | |||
1690 | if (tp->packets_out > tp->snd_cwnd_used) | 1687 | if (tp->packets_out > tp->snd_cwnd_used) |
1691 | tp->snd_cwnd_used = tp->packets_out; | 1688 | tp->snd_cwnd_used = tp->packets_out; |
1692 | 1689 | ||
1693 | if (sysctl_tcp_slow_start_after_idle && | 1690 | if (sock_net(sk)->ipv4.sysctl_tcp_slow_start_after_idle && |
1694 | (s32)(tcp_jiffies32 - tp->snd_cwnd_stamp) >= inet_csk(sk)->icsk_rto && | 1691 | (s32)(tcp_jiffies32 - tp->snd_cwnd_stamp) >= inet_csk(sk)->icsk_rto && |
1695 | !ca_ops->cong_control) | 1692 | !ca_ops->cong_control) |
1696 | tcp_cwnd_application_limited(sk); | 1693 | tcp_cwnd_application_limited(sk); |