diff options
author | Eric Dumazet <edumazet@google.com> | 2017-10-27 00:54:58 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-27 03:35:42 -0400 |
commit | 2c04ac8ae0b61e0780a30b7069a11bb202b21f26 (patch) | |
tree | cd0ed0c673d26e3a9cdd7fd124f3f28b1877079f /net/ipv4/tcp_timer.c | |
parent | e20223f1962831d1b1c416d59d259879d0639d68 (diff) |
tcp: Namespace-ify sysctl_tcp_thin_linear_timeouts
Note that sysctl_tcp_thin_dupack was not used, I deleted it.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_timer.c')
-rw-r--r-- | net/ipv4/tcp_timer.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/ipv4/tcp_timer.c b/net/ipv4/tcp_timer.c index 804a8d34ce86..035a1ef1f2d8 100644 --- a/net/ipv4/tcp_timer.c +++ b/net/ipv4/tcp_timer.c | |||
@@ -22,8 +22,6 @@ | |||
22 | #include <linux/gfp.h> | 22 | #include <linux/gfp.h> |
23 | #include <net/tcp.h> | 23 | #include <net/tcp.h> |
24 | 24 | ||
25 | int sysctl_tcp_thin_linear_timeouts __read_mostly; | ||
26 | |||
27 | /** | 25 | /** |
28 | * tcp_write_err() - close socket and save error info | 26 | * tcp_write_err() - close socket and save error info |
29 | * @sk: The socket the error has appeared on. | 27 | * @sk: The socket the error has appeared on. |
@@ -522,7 +520,7 @@ out_reset_timer: | |||
522 | * linear-timeout retransmissions into a black hole | 520 | * linear-timeout retransmissions into a black hole |
523 | */ | 521 | */ |
524 | if (sk->sk_state == TCP_ESTABLISHED && | 522 | if (sk->sk_state == TCP_ESTABLISHED && |
525 | (tp->thin_lto || sysctl_tcp_thin_linear_timeouts) && | 523 | (tp->thin_lto || net->ipv4.sysctl_tcp_thin_linear_timeouts) && |
526 | tcp_stream_is_thin(tp) && | 524 | tcp_stream_is_thin(tp) && |
527 | icsk->icsk_retransmits <= TCP_THIN_LINEAR_RETRIES) { | 525 | icsk->icsk_retransmits <= TCP_THIN_LINEAR_RETRIES) { |
528 | icsk->icsk_backoff = 0; | 526 | icsk->icsk_backoff = 0; |