net: add a limit parameter to sk_add_backlog()
authorEric Dumazet <edumazet@google.com>
Sun, 22 Apr 2012 23:34:26 +0000 (23:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Apr 2012 02:28:28 +0000 (22:28 -0400)
commitf545a38f74584cc7424cb74f792a00c6d2589485
treeb272cbfed3267a7750f55f23989e1b070ae6ac3e
parentb98985073bc5403ef1320866e4ef8bbc5d587ceb
net: add a limit parameter to sk_add_backlog()

sk_add_backlog() & sk_rcvqueues_full() hard coded sk_rcvbuf as the
memory limit. We need to make this limit a parameter for TCP use.

No functional change expected in this patch, all callers still using the
old sk_rcvbuf limit.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Neal Cardwell <ncardwell@google.com>
Cc: Tom Herbert <therbert@google.com>
Cc: Maciej Żenczykowski <maze@google.com>
Cc: Yuchung Cheng <ycheng@google.com>
Cc: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Cc: Rick Jones <rick.jones2@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sock.h
net/core/sock.c
net/ipv4/tcp_ipv4.c
net/ipv4/udp.c
net/ipv6/tcp_ipv6.c
net/ipv6/udp.c
net/llc/llc_conn.c
net/sctp/input.c
net/tipc/socket.c
net/x25/x25_dev.c