net: relax rcvbuf limits
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 21 Dec 2011 07:11:44 +0000 (07:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Dec 2011 07:15:14 +0000 (02:15 -0500)
commit0fd7bac6b6157eed6cf0cb86a1e88ba29e57c033
treebcc24e9c63587bc1e8e15ad60654de9c6f72883e
parenta0a129f8b6cff54ab479324a54aefdab5db4f240
net: relax rcvbuf limits

skb->truesize might be big even for a small packet.

Its even bigger after commit 87fb4b7b533 (net: more accurate skb
truesize) and big MTU.

We should allow queueing at least one packet per receiver, even with a
low RCVBUF setting.

Reported-by: Michal Simek <monstr@monstr.eu>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sock.h
net/core/sock.c
net/packet/af_packet.c