diff options
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); |