diff options
author | Haishuang Yan <yanhaishuang@cmss.chinamobile.com> | 2016-12-28 10:52:33 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-12-29 17:38:31 +0100 |
commit | fee83d097b1620530f23bf6063f4ea251ba9c8c7 (patch) | |
tree | 64c2ff87e756a8e024308d7d9f076ae282d9c83f /net/ipv4/tcp_input.c | |
parent | ipv4: Namespaceify tcp_tw_recycle and tcp_max_tw_buckets knob (diff) | |
download | linux-fee83d097b1620530f23bf6063f4ea251ba9c8c7.tar.xz linux-fee83d097b1620530f23bf6063f4ea251ba9c8c7.zip |
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, } /* Kill the following clause, if you dislike this way. */ else if (!net->ipv4.sysctl_tcp_syncookies && - (sysctl_max_syn_backlog - inet_csk_reqsk_queue_len(sk) < - (sysctl_max_syn_backlog >> 2)) && + (net->ipv4.sysctl_max_syn_backlog - inet_csk_reqsk_queue_len(sk) < + (net->ipv4.sysctl_max_syn_backlog >> 2)) && !tcp_peer_is_proven(req, dst, false, tmp_opt.saw_tstamp)) { /* Without syncookies last quarter of |