From: John Heffner <[EMAIL PROTECTED]>
Date: Fri, 24 Mar 2006 11:47:29 -0500

> 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 <[EMAIL PROTECTED]>

Applied.

I made a minor modification, I calculated the max_shared thing using
"unsigned long" as the type for the max() calculation.  With the
shifts, the second argument perhaps could get shifted so high as to
become zero with large enough parameters on 64-bit and large
PAGE_SIZE.

Maybe it doesn't matter, but I felt safer doing it this way.
:-)

Thanks.
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to