diff options
author | Eric Dumazet <edumazet@google.com> | 2017-10-27 10:47:28 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-28 06:24:39 -0400 |
commit | bd239704295c66196e6b77c5717ec4aec076ddd5 (patch) | |
tree | 26e8dc3319b42d82ec0210017f0529c284da5cf4 /net/ipv4/tcp_input.c | |
parent | 26e9596e5b8f11025b57b12e7265df649129ab00 (diff) |
tcp: Namespace-ify sysctl_tcp_min_rtt_wlen
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 928048a4e2c5..da1ef666d1f9 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c | |||
@@ -80,7 +80,6 @@ | |||
80 | #include <linux/static_key.h> | 80 | #include <linux/static_key.h> |
81 | 81 | ||
82 | int sysctl_tcp_max_orphans __read_mostly = NR_FILE; | 82 | int sysctl_tcp_max_orphans __read_mostly = NR_FILE; |
83 | int sysctl_tcp_min_rtt_wlen __read_mostly = 300; | ||
84 | int sysctl_tcp_invalid_ratelimit __read_mostly = HZ/2; | 83 | int sysctl_tcp_invalid_ratelimit __read_mostly = HZ/2; |
85 | 84 | ||
86 | #define FLAG_DATA 0x01 /* Incoming frame contained data. */ | 85 | #define FLAG_DATA 0x01 /* Incoming frame contained data. */ |
@@ -2915,8 +2914,8 @@ static void tcp_fastretrans_alert(struct sock *sk, const int acked, | |||
2915 | 2914 | ||
2916 | static void tcp_update_rtt_min(struct sock *sk, u32 rtt_us) | 2915 | static void tcp_update_rtt_min(struct sock *sk, u32 rtt_us) |
2917 | { | 2916 | { |
2917 | u32 wlen = sock_net(sk)->ipv4.sysctl_tcp_min_rtt_wlen * HZ; | ||
2918 | struct tcp_sock *tp = tcp_sk(sk); | 2918 | struct tcp_sock *tp = tcp_sk(sk); |
2919 | u32 wlen = sysctl_tcp_min_rtt_wlen * HZ; | ||
2920 | 2919 | ||
2921 | minmax_running_min(&tp->rtt_min, wlen, tcp_jiffies32, | 2920 | minmax_running_min(&tp->rtt_min, wlen, tcp_jiffies32, |
2922 | rtt_us ? : jiffies_to_usecs(1)); | 2921 | rtt_us ? : jiffies_to_usecs(1)); |