]> err.no Git - linux-2.6/commit
[TCP]: Set default max buffers from memory pool size
authorJohn Heffner <jheffner@psc.edu>
Sat, 25 Mar 2006 09:34:07 +0000 (01:34 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 25 Mar 2006 09:34:07 +0000 (01:34 -0800)
commit7b4f4b5ebceab67ce440a61081a69f0265e17c2a
treeac02c685ce23f2440fecbebaa5b55cd47947c03e
parent2babf9daae4a3561f3264638a22ac7d0b14a6f52
[TCP]: Set default max buffers from memory pool size

This patch sets the maximum TCP buffer sizes (available to automatic
buffer tuning, not to setsockopt) based on the TCP memory pool size.
The maximum sndbuf and rcvbuf each will be up to 4 MB, but no more
than 1/128 of the memory pressure threshold.

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