diff options
author | Eric Dumazet <edumazet@google.com> | 2015-03-19 22:04:21 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-20 12:40:25 -0400 |
commit | becb74f0acca19b5abfcb24dc602530f3deea66a (patch) | |
tree | 1c688749f3b5570f62245a7bb317c94f4af43a80 /net/core | |
parent | fa76ce7328b289b6edd476e24eb52fd634261720 (diff) |
net: increase sk_[max_]ack_backlog
sk_ack_backlog & sk_max_ack_backlog were 16bit fields, meaning
listen() backlog was limited to 65535.
It is time to increase the width to allow much bigger backlog,
if admins change /proc/sys/net/core/somaxconn &
/proc/sys/net/ipv4/tcp_max_syn_backlog default values.
Tested:
echo 5000000 >/proc/sys/net/core/somaxconn
echo 5000000 >/proc/sys/net/ipv4/tcp_max_syn_backlog
Ran a SYNFLOOD test against a listener using listen(fd, 5000000)
myhost~# grep request_sock_TCP /proc/slabinfo
request_sock_TCP 4185642 4411940 304 13 1 : tunables 54 27 8 : slabdata 339380 339380 0
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-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 433424804284..e1c85db5216f 100644 --- a/net/core/sysctl_net_core.c +++ b/net/core/sysctl_net_core.c | |||
@@ -24,7 +24,6 @@ | |||
24 | 24 | ||
25 | static int zero = 0; | 25 | static int zero = 0; |
26 | static int one = 1; | 26 | static int one = 1; |
27 | static int ushort_max = USHRT_MAX; | ||
28 | 27 | ||
29 | static int net_msg_warn; /* Unused, but still a sysctl */ | 28 | static int net_msg_warn; /* Unused, but still a sysctl */ |
30 | 29 | ||
@@ -401,7 +400,6 @@ static struct ctl_table netns_core_table[] = { | |||
401 | .maxlen = sizeof(int), | 400 | .maxlen = sizeof(int), |
402 | .mode = 0644, | 401 | .mode = 0644, |
403 | .extra1 = &zero, | 402 | .extra1 = &zero, |
404 | .extra2 = &ushort_max, | ||
405 | .proc_handler = proc_dointvec_minmax | 403 | .proc_handler = proc_dointvec_minmax |
406 | }, | 404 | }, |
407 | { } | 405 | { } |