diff options
author | John Heffner <jheffner@psc.edu> | 2006-11-09 11:01:54 +0100 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2006-11-09 11:01:54 +0100 |
commit | 289b5dceffbf83344a6e8dc319f8e2822edeab5f (patch) | |
tree | 91d266fc2f8201ee9cc0b20f51fd27e3e4066f91 /net | |
parent | c3fe9b53262fb22a7aaacf448e911f267c5482a9 (diff) |
[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 <jheffner@psc.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/tcp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index 00aa80e9324..f33e1c61616 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); |