diff options
author | Haishuang Yan <yanhaishuang@cmss.chinamobile.com> | 2016-12-28 04:52:33 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-12-29 11:38:31 -0500 |
commit | fee83d097b1620530f23bf6063f4ea251ba9c8c7 (patch) | |
tree | 64c2ff87e756a8e024308d7d9f076ae282d9c83f /net/ipv4/tcp_input.c | |
parent | 1946e672c173559155a3e210fe95dbf8b7b8ddf7 (diff) |
ipv4: Namespaceify tcp_max_syn_backlog knob
Different namespace application might require different maximal
number of remembered connection requests.
Signed-off-by: Haishuang Yan <yanhaishuang@cmss.chinamobile.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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index c61480249835..ec6d84363024 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c | |||
@@ -6377,8 +6377,8 @@ int tcp_conn_request(struct request_sock_ops *rsk_ops, | |||
6377 | } | 6377 | } |
6378 | /* Kill the following clause, if you dislike this way. */ | 6378 | /* Kill the following clause, if you dislike this way. */ |
6379 | else if (!net->ipv4.sysctl_tcp_syncookies && | 6379 | else if (!net->ipv4.sysctl_tcp_syncookies && |
6380 | (sysctl_max_syn_backlog - inet_csk_reqsk_queue_len(sk) < | 6380 | (net->ipv4.sysctl_max_syn_backlog - inet_csk_reqsk_queue_len(sk) < |
6381 | (sysctl_max_syn_backlog >> 2)) && | 6381 | (net->ipv4.sysctl_max_syn_backlog >> 2)) && |
6382 | !tcp_peer_is_proven(req, dst, false, | 6382 | !tcp_peer_is_proven(req, dst, false, |
6383 | tmp_opt.saw_tstamp)) { | 6383 | tmp_opt.saw_tstamp)) { |
6384 | /* Without syncookies last quarter of | 6384 | /* Without syncookies last quarter of |