diff options
author | Eric Dumazet <edumazet@google.com> | 2017-10-27 00:55:06 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-27 03:35:43 -0400 |
commit | c6e218035913e14952b04ceecf1a543205106fdb (patch) | |
tree | 2784d06d00a19a708a73f805ac7c891ec8503888 /net/ipv4/tcp_input.c | |
parent | 773d4bb96ceca6829ae9928f6b002b93e2e62cdc (diff) |
tcp: Namespace-ify sysctl_tcp_max_reordering
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 c5b94460793f..c118657f06ee 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c | |||
@@ -79,7 +79,6 @@ | |||
79 | #include <linux/unaligned/access_ok.h> | 79 | #include <linux/unaligned/access_ok.h> |
80 | #include <linux/static_key.h> | 80 | #include <linux/static_key.h> |
81 | 81 | ||
82 | int sysctl_tcp_max_reordering __read_mostly = 300; | ||
83 | int sysctl_tcp_dsack __read_mostly = 1; | 82 | int sysctl_tcp_dsack __read_mostly = 1; |
84 | int sysctl_tcp_app_win __read_mostly = 31; | 83 | int sysctl_tcp_app_win __read_mostly = 31; |
85 | int sysctl_tcp_adv_win_scale __read_mostly = 1; | 84 | int sysctl_tcp_adv_win_scale __read_mostly = 1; |
@@ -889,7 +888,7 @@ static void tcp_update_reordering(struct sock *sk, const int metric, | |||
889 | return; | 888 | return; |
890 | 889 | ||
891 | if (metric > tp->reordering) { | 890 | if (metric > tp->reordering) { |
892 | tp->reordering = min(sysctl_tcp_max_reordering, metric); | 891 | tp->reordering = min(sock_net(sk)->ipv4.sysctl_tcp_max_reordering, metric); |
893 | 892 | ||
894 | #if FASTRETRANS_DEBUG > 1 | 893 | #if FASTRETRANS_DEBUG > 1 |
895 | pr_debug("Disorder%d %d %u f%u s%u rr%d\n", | 894 | pr_debug("Disorder%d %d %u f%u s%u rr%d\n", |