]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[TCP]: Don't use highmem in tcp hash size calculation.
authorJohn Heffner <jheffner@psc.edu>
Tue, 7 Nov 2006 07:10:51 +0000 (23:10 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Tue, 7 Nov 2006 23:10:11 +0000 (15:10 -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>
net/ipv4/tcp.c

index 66e9a729f6dfa87060c535d087fba0987bb44116..4322318ab332138ffadd1a9ecfb587ba666efd25 100644 (file)
@@ -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);