]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/rxrpc/ar-input.c
[UDP]: Restore missing inDatagrams increments
[linux-2.6-omap-h63xx.git] / net / rxrpc / ar-input.c
index 91b5bbb003e26b53496cfda72b687e009487e9ba..f446d9b9925fe950b574ca085f704a7d017b1ba3 100644 (file)
@@ -20,6 +20,7 @@
 #include <net/sock.h>
 #include <net/af_rxrpc.h>
 #include <net/ip.h>
+#include <net/udp.h>
 #include "ar-internal.h"
 
 unsigned long rxrpc_ack_timeout = 1;
@@ -707,10 +708,13 @@ void rxrpc_data_ready(struct sock *sk, int count)
        if (skb_checksum_complete(skb)) {
                rxrpc_free_skb(skb);
                rxrpc_put_local(local);
+               UDP_INC_STATS_BH(UDP_MIB_INERRORS, 0);
                _leave(" [CSUM failed]");
                return;
        }
 
+       UDP_INC_STATS_BH(UDP_MIB_INDATAGRAMS, 0);
+
        /* the socket buffer we have is owned by UDP, with UDP's data all over
         * it, but we really want our own */
        skb_orphan(skb);