Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9e950efa authored by John Heffner's avatar John Heffner Committed by David S. Miller
Browse files

[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: default avatarJohn Heffner <jheffner@psc.edu>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3b6a792f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2270,7 +2270,7 @@ void __init tcp_init(void)
					thash_entries,
					(num_physpages >= 128 * 1024) ?
					13 : 15,
					HASH_HIGHMEM,
					0,
					&tcp_hashinfo.ehash_size,
					NULL,
					0);
@@ -2286,7 +2286,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);