diff options
author | Eric Dumazet <edumazet@google.com> | 2017-10-27 00:55:04 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-27 03:35:42 -0400 |
commit | 0bc65a28ae2aeb14aab7f4a930e0d8cf4cad9dc4 (patch) | |
tree | 2b58d32f2cb34dc7c21a2b2a1a2cfaa0d24c31c8 /net/ipv4/tcp_input.c | |
parent | 65c9410cf55ecf32da1b720f563365d565d6289a (diff) |
tcp: Namespace-ify sysctl_tcp_fack
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 64fde81b0eb7..c5b94460793f 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_fack __read_mostly; | ||
83 | int sysctl_tcp_max_reordering __read_mostly = 300; | 82 | int sysctl_tcp_max_reordering __read_mostly = 300; |
84 | int sysctl_tcp_dsack __read_mostly = 1; | 83 | int sysctl_tcp_dsack __read_mostly = 1; |
85 | int sysctl_tcp_app_win __read_mostly = 31; | 84 | int sysctl_tcp_app_win __read_mostly = 31; |
@@ -5720,7 +5719,7 @@ static int tcp_rcv_synsent_state_process(struct sock *sk, struct sk_buff *skb, | |||
5720 | tp->tcp_header_len = sizeof(struct tcphdr); | 5719 | tp->tcp_header_len = sizeof(struct tcphdr); |
5721 | } | 5720 | } |
5722 | 5721 | ||
5723 | if (tcp_is_sack(tp) && sysctl_tcp_fack) | 5722 | if (tcp_is_sack(tp) && sock_net(sk)->ipv4.sysctl_tcp_fack) |
5724 | tcp_enable_fack(tp); | 5723 | tcp_enable_fack(tp); |
5725 | 5724 | ||
5726 | tcp_sync_mss(sk, icsk->icsk_pmtu_cookie); | 5725 | tcp_sync_mss(sk, icsk->icsk_pmtu_cookie); |