]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[TCP]: Don't use highmem in tcp hash size calculation.
authorJohn Heffner <jheffner@psc.edu>
Thu, 9 Nov 2006 10:01:54 +0000 (11:01 +0100)
committerAdrian Bunk <bunk@stusta.de>
Thu, 9 Nov 2006 10:01:54 +0000 (11:01 +0100)
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>
net/ipv4/tcp.c

index 00aa80e9324323305fb72b365f75f96243390d1c..f33e1c61616a981cb9c43eb14aee4ba0cc9fecc8 100644 (file)
@@ -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);