mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
[UDP]: Restore missing inDatagrams increments
The previous move of the the UDP inDatagrams counter caused the counting of encapsulated packets, SUNRPC data (as opposed to call) packets and RXRPC packets to go missing. This patch restores all of these. Signed-off-by: Herbert Xu <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
27ab256864
commit
1781f7f580
8 changed files with 42 additions and 14 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue