mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]> Cc: Neal Cardwell <[email protected]> Cc: Tom Herbert <[email protected]> Cc: Maciej Żenczykowski <[email protected]> Cc: Yuchung Cheng <[email protected]> Cc: Ilpo Järvinen <[email protected]> Cc: Rick Jones <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
b98985073b
commit
f545a38f74
10 changed files with 21 additions and 19 deletions
|
|
@ -828,7 +828,7 @@ void llc_conn_handler(struct llc_sap *sap, struct sk_buff *skb)
|
|||
else {
|
||||
dprintk("%s: adding to backlog...\n", __func__);
|
||||
llc_set_backlog_type(skb, LLC_PACKET);
|
||||
if (sk_add_backlog(sk, skb))
|
||||
if (sk_add_backlog(sk, skb, sk->sk_rcvbuf))
|
||||
goto drop_unlock;
|
||||
}
|
||||
out:
|
||||
|
|
|
|||
Loading…
Reference in a new issue