Commit 2eee40c7 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont Committed by David S. Miller

Phonet: dropped datagrams accounting

The per-socket drop count is visible via /proc/net/phonet.
Signed-off-by: default avatarRémi Denis-Courmont <>
Signed-off-by: default avatarDavid S. Miller <>
parent 2e2fb4b3
......@@ -159,8 +159,11 @@ out_nofree:
static int pn_backlog_rcv(struct sock *sk, struct sk_buff *skb)
int err = sock_queue_rcv_skb(sk, skb);
if (err < 0)
if (err < 0) {
if (err == -ENOMEM)
return err ? NET_RX_DROP : NET_RX_SUCCESS;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment