[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> Signed-off-by: Adrian Bunk <bunk@stusta.de>
This commit is contained in:
committed by
Adrian Bunk
parent
c3fe9b5326
commit
289b5dceff
+2
-2
@@ -2066,7 +2066,7 @@ void __init tcp_init(void)
|
||||
thash_entries,
|
||||
(num_physpages >= 128 * 1024) ?
|
||||
13 : 15,
|
||||
HASH_HIGHMEM,
|
||||
0,
|
||||
&tcp_hashinfo.ehash_size,
|
||||
NULL,
|
||||
0);
|
||||
@@ -2082,7 +2082,7 @@ void __init tcp_init(void)
|
||||
tcp_hashinfo.ehash_size,
|
||||
(num_physpages >= 128 * 1024) ?
|
||||
13 : 15,
|
||||
HASH_HIGHMEM,
|
||||
0,
|
||||
&tcp_hashinfo.bhash_size,
|
||||
NULL,
|
||||
64 * 1024);
|
||||
|
||||
Reference in New Issue
Block a user