]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: calculate tcp_mem based on low memory instead of all memory
authorMiquel van Smoorenburg <miquels@cistron.nl>
Sat, 28 Jun 2008 00:23:57 +0000 (17:23 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 28 Jun 2008 00:23:57 +0000 (17:23 -0700)
commit4db352bda598a43abe2cd0ef6541bb532f6470f8
tree325ee5d251700d991cea87d2c4d643b374959095
parent06c8b4336d426610b267f8d8b794d07f215dd49a
tcp: calculate tcp_mem based on low memory instead of all memory

The tcp_mem array which contains limits on the total amount of memory
used by TCP 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: Miquel van Smoorenburg <miquels@cistron.nl>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp.c