tcp: increase tcp_max_syn_backlog max value
authorEric Dumazet <edumazet@google.com>
Wed, 30 Oct 2019 17:05:46 +0000 (10:05 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 31 Oct 2019 21:02:01 +0000 (14:02 -0700)
commit623d0c2db02043e43b698fdd8de1bd398b8e7b37
tree53142e1249ec020cf559130f197077fd53c51139
parent19f92a030ca6d772ab44b22ee6a01378a8cb32d4
tcp: increase tcp_max_syn_backlog max value

tcp_max_syn_backlog default value depends on memory size
and TCP ehash size. Before this patch, the max value
was 2048 [1], which is considered too small nowadays.

Increase it to 4096 to match the recent SOMAXCONN change.

[1] This is with TCP ehash size being capped to 524288 buckets.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Willy Tarreau <w@1wt.eu>
Cc: Yue Cao <ycao009@ucr.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/networking/ip-sysctl.txt
net/ipv4/tcp_ipv4.c