udp: calculate udp_mem based on low memory instead of all memory
authorEric Dumazet <dada1@cosmosbay.com>
Wed, 29 Oct 2008 09:32:32 +0000 (02:32 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Oct 2008 09:32:32 +0000 (02:32 -0700)
This patch mimics commit 57413ebc4e0f1e471a3b4db4aff9a85c083d090e
(tcp: calculate tcp_mem based on low memory instead of all memory)

The udp_mem array which contains limits on the total amount of memory
used by UDP sockets is calculated based on nr_all_pages.  On a 32 bits
x86 system, we should base this on the number of lowmem pages.

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found