]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[PATCH] TCP: Don't use highmem in tcp hash size calculation.
authorJohn Heffner <jheffner@psc.edu>
Thu, 9 Nov 2006 06:31:14 +0000 (22:31 -0800)
committerChris Wright <chrisw@sous-sol.org>
Sun, 19 Nov 2006 03:28:03 +0000 (19:28 -0800)
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: Chris Wright <chrisw@sous-sol.org>
net/ipv4/tcp.c

index 934396bb1376f84b43dd60215c04466690686f93..0a4ed27f52554edd78f45c9d100ac470b439481a 100644 (file)
@@ -2269,7 +2269,7 @@ void __init tcp_init(void)
                                        thash_entries,
                                        (num_physpages >= 128 * 1024) ?
                                        13 : 15,
-                                       HASH_HIGHMEM,
+                                       0,
                                        &tcp_hashinfo.ehash_size,
                                        NULL,
                                        0);
@@ -2285,7 +2285,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);