diff options
author | 2017-06-07 10:34:37 -0700 | |
---|---|---|
committer | 2017-06-08 10:53:28 -0400 | |
commit | f930103421f6579719b8252285c94c1195f6e032 (patch) | |
tree | cb94c6b7a228ffa51760fbdd18c8d321402efe11 /net/ipv4/tcp_input.c | |
parent | tcp: add a struct net parameter to tcp_parse_options() (diff) | |
download | linux-f930103421f6579719b8252285c94c1195f6e032.tar.gz linux-f930103421f6579719b8252285c94c1195f6e032.tar.bz2 linux-f930103421f6579719b8252285c94c1195f6e032.zip |
tcp: Namespaceify sysctl_tcp_sack
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 99ee707f0ef4..2eacfcaf1257 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c @@ -78,7 +78,6 @@ int sysctl_tcp_timestamps __read_mostly = 1; int sysctl_tcp_window_scaling __read_mostly = 1; -int sysctl_tcp_sack __read_mostly = 1; int sysctl_tcp_fack __read_mostly; int sysctl_tcp_max_reordering __read_mostly = 300; int sysctl_tcp_dsack __read_mostly = 1; @@ -3790,7 +3789,7 @@ void tcp_parse_options(const struct net *net, break; case TCPOPT_SACK_PERM: if (opsize == TCPOLEN_SACK_PERM && th->syn && - !estab && sysctl_tcp_sack) { + !estab && net->ipv4.sysctl_tcp_sack) { opt_rx->sack_ok = TCP_SACK_SEEN; tcp_sack_reset(opt_rx); } |