]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: restore correct limit
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 10 Apr 2012 00:56:42 +0000 (00:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Apr 2012 18:39:26 +0000 (14:39 -0400)
commit90d221ddc7d53d5ae55b9760d4d665912209d18f
tree4e27fb488ee9a0ecc4fca1c736dc5415cebbe59c
parent68b6867410769ff86585a5e7c09af8fd90d1ea3e
tcp: restore correct limit

Commit 94188791704427 (tcp: properly initialize tcp memory limits) tried
to fix a regression added in commits bb8af34e & edebf18,
but still get it wrong.

Result is machines with low amount of memory have too small tcp_rmem[2]
value and slow tcp receives : Per socket limit being 1/1024 of memory
instead of 1/128 in old kernels, so rcv window is capped to small
values.

Fix this to match comment and previous behavior.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Jason Wang <jasowang@redhat.com>
Cc: Glauber Costa <glommer@parallels.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp.c