mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -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
|
|
@ -838,8 +838,12 @@ static void xs_udp_data_ready(struct sock *sk, int len)
|
|||
copied = repsize;
|
||||
|
||||
/* Suck it into the iovec, verify checksum if not done by hw. */
|
||||
if (csum_partial_copy_to_xdr(&rovr->rq_private_buf, skb))
|
||||
if (csum_partial_copy_to_xdr(&rovr->rq_private_buf, skb)) {
|
||||
UDPX_INC_STATS_BH(sk, UDP_MIB_INERRORS);
|
||||
goto out_unlock;
|
||||
}
|
||||
|
||||
UDPX_INC_STATS_BH(sk, UDP_MIB_INDATAGRAMS);
|
||||
|
||||
/* Something worked... */
|
||||
dst_confirm(skb->dst);
|
||||
|
|
|
|||
Loading…
Reference in a new issue