summaryrefslogtreecommitdiffstats
path: root/include/net/tcp.h
diff options
context:
space:
mode:
authorNikolay Borisov2016-02-03 08:46:52 +0100
committerDavid S. Miller2016-02-07 20:35:10 +0100
commit1043e25ff96a1efc7bd34d11f5f32203a28a3bd7 (patch)
tree56eb979f398384e49864dfcfb40d0c48e7a7f622 /include/net/tcp.h
parentipv4: Namespaceify tcp syncookies sysctl knob (diff)
downloadkernel-qcow2-linux-1043e25ff96a1efc7bd34d11f5f32203a28a3bd7.tar.gz
kernel-qcow2-linux-1043e25ff96a1efc7bd34d11f5f32203a28a3bd7.tar.xz
kernel-qcow2-linux-1043e25ff96a1efc7bd34d11f5f32203a28a3bd7.zip
ipv4: Namespaceify tcp reordering sysctl knob
Signed-off-by: Nikolay Borisov <kernel@kyup.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r--include/net/tcp.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h
index 1fb23b70d237..7e9a147cabae 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -961,9 +961,11 @@ static inline void tcp_enable_fack(struct tcp_sock *tp)
*/
static inline void tcp_enable_early_retrans(struct tcp_sock *tp)
{
+ struct net *net = sock_net((struct sock *)tp);
+
tp->do_early_retrans = sysctl_tcp_early_retrans &&
sysctl_tcp_early_retrans < 4 && !sysctl_tcp_thin_dupack &&
- sysctl_tcp_reordering == 3;
+ net->ipv4.sysctl_tcp_reordering == 3;
}
static inline void tcp_disable_early_retrans(struct tcp_sock *tp)