]> git.baikalelectronics.ru Git - kernel.git/commit
net: update SOCK_MIN_RCVBUF
authorEric Dumazet <eric.dumazet@gmail.com>
Mon, 27 Sep 2010 01:53:07 +0000 (18:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Sep 2010 01:53:07 +0000 (18:53 -0700)
commit720be2f22c61db7c227a4cdc009b22805c63aafd
tree00f51e051922fbaf2ca93e40d0059e5fbb86b2f1
parentb10bedef1f4a17ab6f5557671fb100b9328e4be1
net: update SOCK_MIN_RCVBUF

SOCK_MIN_RCVBUF current value is 256 bytes

It doesnt permit to receive the smallest possible frame, considering
socket sk_rmem_alloc/sk_rcvbuf account skb truesizes. On 64bit arches,
sizeof(struct sk_buff) is 240 bytes. Add the typical 64 bytes of
headroom, and we go over the limit.

With old kernels and 32bit arches, we were under the limit, if netdriver
was doing copybreak.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sock.h