diff options
author | Eric Dumazet <edumazet@google.com> | 2017-06-07 20:34:38 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-08 17:53:29 +0300 |
commit | 9bb37ef00e932eb4b989e855245468feb3980700 (patch) | |
tree | 10e2be1fff8c29276c9db723bbf03c276df96664 /net/ipv4/tcp_input.c | |
parent | f930103421f6579719b8252285c94c1195f6e032 (diff) | |
download | linux-9bb37ef00e932eb4b989e855245468feb3980700.tar.xz |
tcp: Namespaceify sysctl_tcp_window_scaling
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 2eacfcaf1257..675ee903370f 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c @@ -77,7 +77,6 @@ #include <linux/errqueue.h> int sysctl_tcp_timestamps __read_mostly = 1; -int sysctl_tcp_window_scaling __read_mostly = 1; int sysctl_tcp_fack __read_mostly; int sysctl_tcp_max_reordering __read_mostly = 300; int sysctl_tcp_dsack __read_mostly = 1; @@ -3765,7 +3764,7 @@ void tcp_parse_options(const struct net *net, break; case TCPOPT_WINDOW: if (opsize == TCPOLEN_WINDOW && th->syn && - !estab && sysctl_tcp_window_scaling) { + !estab && net->ipv4.sysctl_tcp_window_scaling) { __u8 snd_wscale = *(__u8 *)ptr; opt_rx->wscale_ok = 1; if (snd_wscale > TCP_MAX_WSCALE) { |