diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2007-12-11 14:30:32 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 17:56:33 -0500 |
commit | 1781f7f5804e52ee2d35328b129602146a8d8254 (patch) | |
tree | dc67102f480e59d87859c50392452be4f41487bd /net/sunrpc/xprtsock.c | |
parent | 27ab2568649d5ba6c5a20212079b7c4f6da4ca0d (diff) |
[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 <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sunrpc/xprtsock.c')
-rw-r--r-- | net/sunrpc/xprtsock.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c index 2f630a512ab7..6fa52f44de0f 100644 --- a/net/sunrpc/xprtsock.c +++ b/net/sunrpc/xprtsock.c | |||
@@ -838,8 +838,12 @@ static void xs_udp_data_ready(struct sock *sk, int len) | |||
838 | copied = repsize; | 838 | copied = repsize; |
839 | 839 | ||
840 | /* Suck it into the iovec, verify checksum if not done by hw. */ | 840 | /* Suck it into the iovec, verify checksum if not done by hw. */ |
841 | if (csum_partial_copy_to_xdr(&rovr->rq_private_buf, skb)) | 841 | if (csum_partial_copy_to_xdr(&rovr->rq_private_buf, skb)) { |
842 | UDPX_INC_STATS_BH(sk, UDP_MIB_INERRORS); | ||
842 | goto out_unlock; | 843 | goto out_unlock; |
844 | } | ||
845 | |||
846 | UDPX_INC_STATS_BH(sk, UDP_MIB_INDATAGRAMS); | ||
843 | 847 | ||
844 | /* Something worked... */ | 848 | /* Something worked... */ |
845 | dst_confirm(skb->dst); | 849 | dst_confirm(skb->dst); |