diff options
author | Eric Dumazet <edumazet@google.com> | 2017-06-07 20:34:37 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-08 17:53:28 +0300 |
commit | f930103421f6579719b8252285c94c1195f6e032 (patch) | |
tree | cb94c6b7a228ffa51760fbdd18c8d321402efe11 /net/ipv4/tcp_output.c | |
parent | eed29f17f09ad7f400bc245f209acad6a8214fac (diff) | |
download | linux-f930103421f6579719b8252285c94c1195f6e032.tar.xz |
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_output.c')
-rw-r--r-- | net/ipv4/tcp_output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index e3aab1c1cf78..45c8e459db49 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c @@ -580,7 +580,7 @@ static unsigned int tcp_syn_options(struct sock *sk, struct sk_buff *skb, opts->options |= OPTION_WSCALE; remaining -= TCPOLEN_WSCALE_ALIGNED; } - if (likely(sysctl_tcp_sack)) { + if (likely(sock_net(sk)->ipv4.sysctl_tcp_sack)) { opts->options |= OPTION_SACK_ADVERTISE; if (unlikely(!(OPTION_TS & opts->options))) remaining -= TCPOLEN_SACKPERM_ALIGNED; |