diff options
Diffstat (limited to 'net/ipv4/tcp.c')
-rw-r--r-- | net/ipv4/tcp.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index 7f0d81c090ce..2e3807d8eba8 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c | |||
@@ -3378,9 +3378,7 @@ void __init tcp_init(void) | |||
3378 | 3378 | ||
3379 | 3379 | ||
3380 | cnt = tcp_hashinfo.ehash_mask + 1; | 3380 | cnt = tcp_hashinfo.ehash_mask + 1; |
3381 | |||
3382 | sysctl_tcp_max_orphans = cnt / 2; | 3381 | sysctl_tcp_max_orphans = cnt / 2; |
3383 | sysctl_max_syn_backlog = max(128, cnt / 256); | ||
3384 | 3382 | ||
3385 | tcp_init_mem(); | 3383 | tcp_init_mem(); |
3386 | /* Set per-socket limits to no more than 1/128 the pressure threshold */ | 3384 | /* Set per-socket limits to no more than 1/128 the pressure threshold */ |