]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
Fix errors in tcp_mem[] calculations.
authorJohn Heffner <jheffner@psc.edu>
Tue, 17 Apr 2007 21:44:06 +0000 (14:44 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 2 May 2007 00:05:58 +0000 (17:05 -0700)
commit3300bb14330a902331bcdfd0f69d9b0945585c51
tree397559e112690338579d82e55da2e91f343271cc
parent979a764e6449e9f9b73d7a9fa84d8e2e5bc65729
Fix errors in tcp_mem[] calculations.

In 2.6.18 a change was made to the tcp_mem[] calculations,
but this causes regressions for some folks up to 2.6.20

The following fix to smooth out the calculation from the
pending 2.6.21 tree by John Heffner fixes the problem for
these folks.

[TCP]: Fix tcp_mem[] initialization.

Change tcp_mem initialization function.  The fraction of total memory
is now a continuous function of memory size, and independent of page
size.

Signed-off-by: John Heffner <jheffner@psc.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/ipv4/tcp.c