|
@@ -2549,7 +2549,7 @@ static int __net_init tcp_sk_init(struct net *net)
|
|
net->ipv4.sysctl_tcp_tw_reuse = 2;
|
|
net->ipv4.sysctl_tcp_tw_reuse = 2;
|
|
|
|
|
|
cnt = tcp_hashinfo.ehash_mask + 1;
|
|
cnt = tcp_hashinfo.ehash_mask + 1;
|
|
- net->ipv4.tcp_death_row.sysctl_max_tw_buckets = (cnt + 1) / 2;
|
|
|
|
|
|
+ net->ipv4.tcp_death_row.sysctl_max_tw_buckets = cnt / 2;
|
|
net->ipv4.tcp_death_row.hashinfo = &tcp_hashinfo;
|
|
net->ipv4.tcp_death_row.hashinfo = &tcp_hashinfo;
|
|
|
|
|
|
net->ipv4.sysctl_max_syn_backlog = max(128, cnt / 256);
|
|
net->ipv4.sysctl_max_syn_backlog = max(128, cnt / 256);
|