]> git.karo-electronics.de Git - karo-tx-linux.git/commit
net: move somaxconn init from sysctl code
authorRoman Kapl <roman.kapl@sysgo.com>
Wed, 24 May 2017 08:22:22 +0000 (10:22 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 May 2017 17:12:17 +0000 (13:12 -0400)
commit7c3f1875c66fbc19762760097cabc91849ea0bbb
tree3254c77f3f02b5436ab02632a5cbfa81367b6f9a
parent65d786c21bf8140dac83563306f46fe0b13a9aaa
net: move somaxconn init from sysctl code

The default value for somaxconn is set in sysctl_core_net_init(), but this
function is not called when kernel is configured without CONFIG_SYSCTL.

This results in the kernel not being able to accept TCP connections,
because the backlog has zero size. Usually, the user ends up with:
"TCP: request_sock_TCP: Possible SYN flooding on port 7. Dropping request.  Check SNMP counters."
If SYN cookies are not enabled the connection is rejected.

Before ef547f2ac16 (tcp: remove max_qlen_log), the effects were less
severe, because the backlog was always at least eight slots long.

Signed-off-by: Roman Kapl <roman.kapl@sysgo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/net_namespace.c
net/core/sysctl_net_core.c