diff options
| author | Dave Airlie <airlied@redhat.com> | 2012-05-07 16:09:09 +0100 | 
|---|---|---|
| committer | Dave Airlie <airlied@redhat.com> | 2012-05-07 16:09:35 +0100 | 
| commit | 4f256e8aa3eda15c11c3cec3ec5336e1fc579cbd (patch) | |
| tree | 33c02b5e18e79756005a3edfa7c862a47de668d5 /net/ipv4/tcp.c | |
| parent | 4086b1e2b19729eebf632073b9d4ab811726d8eb (diff) | |
| parent | dc257cf154be708ecc47b8b89c12ad8cd2cc35e4 (diff) | |
Merge branch 'for-airlied' of git://people.freedesktop.org/~danvet/drm-intel into drm-core-next
Daniel prepared this branch with a back-merge as git was getting
very confused about changes in intel_display.c
Diffstat (limited to 'net/ipv4/tcp.c')
| -rw-r--r-- | net/ipv4/tcp.c | 9 | 
1 files changed, 5 insertions, 4 deletions
| diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index 8bb6adeb62c0..1272a88c2a63 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c @@ -3243,7 +3243,7 @@ void __init tcp_init(void)  {  	struct sk_buff *skb = NULL;  	unsigned long limit; -	int max_share, cnt; +	int max_rshare, max_wshare, cnt;  	unsigned int i;  	unsigned long jiffy = jiffies; @@ -3303,15 +3303,16 @@ void __init tcp_init(void)  	tcp_init_mem(&init_net);  	/* Set per-socket limits to no more than 1/128 the pressure threshold */  	limit = nr_free_buffer_pages() << (PAGE_SHIFT - 7); -	max_share = min(4UL*1024*1024, limit); +	max_wshare = min(4UL*1024*1024, limit); +	max_rshare = min(6UL*1024*1024, limit);  	sysctl_tcp_wmem[0] = SK_MEM_QUANTUM;  	sysctl_tcp_wmem[1] = 16*1024; -	sysctl_tcp_wmem[2] = max(64*1024, max_share); +	sysctl_tcp_wmem[2] = max(64*1024, max_wshare);  	sysctl_tcp_rmem[0] = SK_MEM_QUANTUM;  	sysctl_tcp_rmem[1] = 87380; -	sysctl_tcp_rmem[2] = max(87380, max_share); +	sysctl_tcp_rmem[2] = max(87380, max_rshare);  	pr_info("Hash tables configured (established %u bind %u)\n",  		tcp_hashinfo.ehash_mask + 1, tcp_hashinfo.bhash_size); | 
