diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2009-10-15 05:40:11 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-15 05:40:11 +0200 |
commit | 766e9037cc139ee25ed93ee5ad11e1450c4b99f6 (patch) | |
tree | 062702b8edf203a6e91d1e6853ab24989617d758 /net/phonet/pep.c | |
parent | hamradio: Fix bit test correctly. (diff) | |
download | linux-766e9037cc139ee25ed93ee5ad11e1450c4b99f6.tar.xz linux-766e9037cc139ee25ed93ee5ad11e1450c4b99f6.zip |
net: sk_drops consolidation
sock_queue_rcv_skb() can update sk_drops itself, removing need for
callers to take care of it. This is more consistent since
sock_queue_rcv_skb() also reads sk_drops when queueing a skb.
This adds sk_drops managment to many protocols that not cared yet.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r-- | net/phonet/pep.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/phonet/pep.c b/net/phonet/pep.c index 5f32d217535b..cbaa1d67d77b 100644 --- a/net/phonet/pep.c +++ b/net/phonet/pep.c @@ -360,8 +360,6 @@ static int pipe_do_rcv(struct sock *sk, struct sk_buff *skb) err = sock_queue_rcv_skb(sk, skb); if (!err) return 0; - if (err == -ENOMEM) - atomic_inc(&sk->sk_drops); break; } |