Skip to content

Commit

Permalink
llc: use limited socket backlog
Browse files Browse the repository at this point in the history
Make llc adapt to the limited socket backlog change.

Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Acked-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Zhu Yi authored and David S. Miller committed Mar 5, 2010
1 parent 5534979 commit 79545b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/llc/llc_conn.c
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,8 @@ 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);
sk_add_backlog(sk, skb);
if (sk_add_backlog_limited(sk, skb))
goto drop_unlock;
}
out:
bh_unlock_sock(sk);
Expand Down

0 comments on commit 79545b6

Please sign in to comment.