diff options
author | Eric Dumazet <edumazet@google.com> | 2017-06-07 13:34:37 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-08 10:53:28 -0400 |
commit | f930103421f6579719b8252285c94c1195f6e032 (patch) | |
tree | cb94c6b7a228ffa51760fbdd18c8d321402efe11 /net/ipv4/tcp_output.c | |
parent | eed29f17f09ad7f400bc245f209acad6a8214fac (diff) |
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, | |||
580 | opts->options |= OPTION_WSCALE; | 580 | opts->options |= OPTION_WSCALE; |
581 | remaining -= TCPOLEN_WSCALE_ALIGNED; | 581 | remaining -= TCPOLEN_WSCALE_ALIGNED; |
582 | } | 582 | } |
583 | if (likely(sysctl_tcp_sack)) { | 583 | if (likely(sock_net(sk)->ipv4.sysctl_tcp_sack)) { |
584 | opts->options |= OPTION_SACK_ADVERTISE; | 584 | opts->options |= OPTION_SACK_ADVERTISE; |
585 | if (unlikely(!(OPTION_TS & opts->options))) | 585 | if (unlikely(!(OPTION_TS & opts->options))) |
586 | remaining -= TCPOLEN_SACKPERM_ALIGNED; | 586 | remaining -= TCPOLEN_SACKPERM_ALIGNED; |