diff options
author | Roman Kapl <roman.kapl@sysgo.com> | 2017-05-24 10:22:22 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-05-25 13:12:17 -0400 |
commit | 7c3f1875c66fbc19762760097cabc91849ea0bbb (patch) | |
tree | 3254c77f3f02b5436ab02632a5cbfa81367b6f9a /net/core/sysctl_net_core.c | |
parent | 65d786c21bf8140dac83563306f46fe0b13a9aaa (diff) | |
download | op-kernel-dev-7c3f1875c66fbc19762760097cabc91849ea0bbb.zip op-kernel-dev-7c3f1875c66fbc19762760097cabc91849ea0bbb.tar.gz |
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>
Diffstat (limited to 'net/core/sysctl_net_core.c')
-rw-r--r-- | net/core/sysctl_net_core.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/core/sysctl_net_core.c b/net/core/sysctl_net_core.c index ea23254..b7cd9aa 100644 --- a/net/core/sysctl_net_core.c +++ b/net/core/sysctl_net_core.c @@ -479,8 +479,6 @@ static __net_init int sysctl_core_net_init(struct net *net) { struct ctl_table *tbl; - net->core.sysctl_somaxconn = SOMAXCONN; - tbl = netns_core_table; if (!net_eq(net, &init_net)) { tbl = kmemdup(tbl, sizeof(netns_core_table), GFP_KERNEL); |