diff options
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); |