summaryrefslogtreecommitdiffstats
path: root/net/ipv4/udp.c
diff options
context:
space:
mode:
authorJames M Leddy <james.leddy@redhat.com>2014-06-25 17:38:13 -0400
committerDavid S. Miller <davem@davemloft.net>2014-06-27 00:20:55 -0700
commit3e215c8d1b6b772d107f1811b5ee8eae7a046fb4 (patch)
treea2777ecdcc0a7bd6206ccda142475f3111217219 /net/ipv4/udp.c
parent73413ffac3b713231dac466bca216f970042c5e5 (diff)
downloadlinux-3e215c8d1b6b772d107f1811b5ee8eae7a046fb4.tar.gz
linux-3e215c8d1b6b772d107f1811b5ee8eae7a046fb4.tar.bz2
linux-3e215c8d1b6b772d107f1811b5ee8eae7a046fb4.zip
udp: Add MIB counters for rcvbuferrors
Add MIB counters for rcvbuferrors in UDP to help diagnose problems. Signed-off-by: James M Leddy <james.leddy@redhat.com> Acked-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/udp.c')
-rw-r--r--net/ipv4/udp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c
index d92f94b7e402..7d5a8661df76 100644
--- a/net/ipv4/udp.c
+++ b/net/ipv4/udp.c
@@ -1588,8 +1588,11 @@ int udp_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
goto csum_error;
- if (sk_rcvqueues_full(sk, skb, sk->sk_rcvbuf))
+ if (sk_rcvqueues_full(sk, skb, sk->sk_rcvbuf)) {
+ UDP_INC_STATS_BH(sock_net(sk), UDP_MIB_RCVBUFERRORS,
+ is_udplite);
goto drop;
+ }
rc = 0;