mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-18 11:54:37 +08:00
[TCP]: Don't use highmem in tcp hash size calculation.
This patch removes consideration of high memory when determining TCP hash table sizes. Taking into account high memory results in tcp_mem values that are too large. Signed-off-by: John Heffner <jheffner@psc.edu> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
3b6a792f6a
commit
9e950efa20
@ -2270,7 +2270,7 @@ void __init tcp_init(void)
|
|||||||
thash_entries,
|
thash_entries,
|
||||||
(num_physpages >= 128 * 1024) ?
|
(num_physpages >= 128 * 1024) ?
|
||||||
13 : 15,
|
13 : 15,
|
||||||
HASH_HIGHMEM,
|
0,
|
||||||
&tcp_hashinfo.ehash_size,
|
&tcp_hashinfo.ehash_size,
|
||||||
NULL,
|
NULL,
|
||||||
0);
|
0);
|
||||||
@ -2286,7 +2286,7 @@ void __init tcp_init(void)
|
|||||||
tcp_hashinfo.ehash_size,
|
tcp_hashinfo.ehash_size,
|
||||||
(num_physpages >= 128 * 1024) ?
|
(num_physpages >= 128 * 1024) ?
|
||||||
13 : 15,
|
13 : 15,
|
||||||
HASH_HIGHMEM,
|
0,
|
||||||
&tcp_hashinfo.bhash_size,
|
&tcp_hashinfo.bhash_size,
|
||||||
NULL,
|
NULL,
|
||||||
64 * 1024);
|
64 * 1024);
|
||||||
|
Loading…
Reference in New Issue
Block a user