aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_ipv4.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2016-02-07 14:36:21 -0500
committerDavid S. Miller <davem@davemloft.net>2016-02-07 14:36:21 -0500
commit7158ce80dd2dfd52e80dbf514c8dbcb75d321377 (patch)
tree1ff97d492bccff41a2171747ec6bba8c298ca03c /net/ipv4/tcp_ipv4.c
parent9d1eb21b59967b337695ed6df66c6d225e3019e0 (diff)
parent4979f2d9f7262b9b180bc83de8d70f7a7721c085 (diff)
Merge branch 'ns-tcp-sysctls'
Nikolay Borisov says: ==================== Namespaceify more of the tcp sysctl knobs This patch series continues making more of the tcp-related sysctl knobs be per net-namespace. Most of these apply per socket and have global defaults so should be safe and I don't expect any breakages. Having those per net-namespace is useful when multiple containers are hosted and it is required to tune the tcp settings for each independently of the host node. I've split the patches to be per-sysctl but after the review if the outcome is positive I'm happy to either send it in one big blob or just. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
-rw-r--r--net/ipv4/tcp_ipv4.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c
index a4d523709ab3..11ae706f53a1 100644
--- a/net/ipv4/tcp_ipv4.c
+++ b/net/ipv4/tcp_ipv4.c
@@ -860,7 +860,6 @@ static void tcp_v4_reqsk_destructor(struct request_sock *req)
860 kfree(inet_rsk(req)->opt); 860 kfree(inet_rsk(req)->opt);
861} 861}
862 862
863
864#ifdef CONFIG_TCP_MD5SIG 863#ifdef CONFIG_TCP_MD5SIG
865/* 864/*
866 * RFC2385 MD5 checksumming requires a mapping of 865 * RFC2385 MD5 checksumming requires a mapping of
@@ -2388,6 +2387,16 @@ static int __net_init tcp_sk_init(struct net *net)
2388 net->ipv4.sysctl_tcp_keepalive_probes = TCP_KEEPALIVE_PROBES; 2387 net->ipv4.sysctl_tcp_keepalive_probes = TCP_KEEPALIVE_PROBES;
2389 net->ipv4.sysctl_tcp_keepalive_intvl = TCP_KEEPALIVE_INTVL; 2388 net->ipv4.sysctl_tcp_keepalive_intvl = TCP_KEEPALIVE_INTVL;
2390 2389
2390 net->ipv4.sysctl_tcp_syn_retries = TCP_SYN_RETRIES;
2391 net->ipv4.sysctl_tcp_synack_retries = TCP_SYNACK_RETRIES;
2392 net->ipv4.sysctl_tcp_syncookies = 0;
2393 net->ipv4.sysctl_tcp_reordering = TCP_FASTRETRANS_THRESH;
2394 net->ipv4.sysctl_tcp_retries1 = TCP_RETR1;
2395 net->ipv4.sysctl_tcp_retries2 = TCP_RETR2;
2396 net->ipv4.sysctl_tcp_orphan_retries = 0;
2397 net->ipv4.sysctl_tcp_fin_timeout = TCP_FIN_TIMEOUT;
2398 net->ipv4.sysctl_tcp_notsent_lowat = UINT_MAX;
2399
2391 return 0; 2400 return 0;
2392fail: 2401fail:
2393 tcp_sk_exit(net); 2402 tcp_sk_exit(net);