diff options
author | Eric Dumazet <edumazet@google.com> | 2017-10-27 00:55:10 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-27 03:35:43 -0400 |
commit | af9b69a7a6ca6b817e8d6f416e7aa5b2a5bf1d91 (patch) | |
tree | e7f0fa12f6cbaaa16014e0fa462128ab76877626 /net/ipv4/tcp_input.c | |
parent | 94f0893e0c27219f4a726932618505aab6795973 (diff) |
tcp: Namespace-ify sysctl_tcp_frto
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_input.c')
-rw-r--r-- | net/ipv4/tcp_input.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index 8ee2c84b0bc6..90d76f1c8f96 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c | |||
@@ -83,7 +83,6 @@ | |||
83 | int sysctl_tcp_challenge_ack_limit = 1000; | 83 | int sysctl_tcp_challenge_ack_limit = 1000; |
84 | 84 | ||
85 | int sysctl_tcp_max_orphans __read_mostly = NR_FILE; | 85 | int sysctl_tcp_max_orphans __read_mostly = NR_FILE; |
86 | int sysctl_tcp_frto __read_mostly = 2; | ||
87 | int sysctl_tcp_min_rtt_wlen __read_mostly = 300; | 86 | int sysctl_tcp_min_rtt_wlen __read_mostly = 300; |
88 | int sysctl_tcp_moderate_rcvbuf __read_mostly = 1; | 87 | int sysctl_tcp_moderate_rcvbuf __read_mostly = 1; |
89 | int sysctl_tcp_invalid_ratelimit __read_mostly = HZ/2; | 88 | int sysctl_tcp_invalid_ratelimit __read_mostly = HZ/2; |
@@ -2026,7 +2025,7 @@ void tcp_enter_loss(struct sock *sk) | |||
2026 | * falsely raise the receive window, which results in repeated | 2025 | * falsely raise the receive window, which results in repeated |
2027 | * timeouts and stop-and-go behavior. | 2026 | * timeouts and stop-and-go behavior. |
2028 | */ | 2027 | */ |
2029 | tp->frto = sysctl_tcp_frto && | 2028 | tp->frto = net->ipv4.sysctl_tcp_frto && |
2030 | (new_recovery || icsk->icsk_retransmits) && | 2029 | (new_recovery || icsk->icsk_retransmits) && |
2031 | !inet_csk(sk)->icsk_mtup.probe_size; | 2030 | !inet_csk(sk)->icsk_mtup.probe_size; |
2032 | } | 2031 | } |