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>
Showing
- include/net/sock.h 6 additions, 4 deletionsinclude/net/sock.h
- net/core/sock.c 2 additions, 2 deletionsnet/core/sock.c
- net/ipv4/tcp_ipv4.c 1 addition, 1 deletionnet/ipv4/tcp_ipv4.c
- net/ipv4/udp.c 2 additions, 2 deletionsnet/ipv4/udp.c
- net/ipv6/tcp_ipv6.c 1 addition, 1 deletionnet/ipv6/tcp_ipv6.c
- net/ipv6/udp.c 4 additions, 4 deletionsnet/ipv6/udp.c
- net/llc/llc_conn.c 1 addition, 1 deletionnet/llc/llc_conn.c
- net/sctp/input.c 2 additions, 2 deletionsnet/sctp/input.c
- net/tipc/socket.c 1 addition, 1 deletionnet/tipc/socket.c
- net/x25/x25_dev.c 1 addition, 1 deletionnet/x25/x25_dev.c
Loading
Please register or sign in to comment