From: John Heffner Date: Thu, 9 Nov 2006 10:01:54 +0000 (+0100) Subject: [TCP]: Don't use highmem in tcp hash size calculation. X-Git-Tag: v2.6.16.32-rc1~13 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=289b5dceffbf83344a6e8dc319f8e2822edeab5f;p=karo-tx-linux.git [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 Signed-off-by: David S. Miller Signed-off-by: Adrian Bunk --- diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index 00aa80e93243..f33e1c61616a 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c @@ -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);