aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_input.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2017-10-27 00:55:04 -0400
committerDavid S. Miller <davem@davemloft.net>2017-10-27 03:35:42 -0400
commit0bc65a28ae2aeb14aab7f4a930e0d8cf4cad9dc4 (patch)
tree2b58d32f2cb34dc7c21a2b2a1a2cfaa0d24c31c8 /net/ipv4/tcp_input.c
parent65c9410cf55ecf32da1b720f563365d565d6289a (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.c3
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
82int sysctl_tcp_fack __read_mostly;
83int sysctl_tcp_max_reordering __read_mostly = 300; 82int sysctl_tcp_max_reordering __read_mostly = 300;
84int sysctl_tcp_dsack __read_mostly = 1; 83int sysctl_tcp_dsack __read_mostly = 1;
85int sysctl_tcp_app_win __read_mostly = 31; 84int 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);