aboutsummaryrefslogtreecommitdiff
path: root/sys/ofed
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2011-05-26 22:29:43 +0000
committerXin LI <delphij@FreeBSD.org>2011-05-26 22:29:43 +0000
commit66d972cfd61fde2c22319b3329b3473fafd2e2bb (patch)
tree79172ee05163ad9b32a5c5246211d7905bf3d166 /sys/ofed
parent8b5e8315a78e09afe5fd4191739bf53903d3372c (diff)
downloadsrc-66d972cfd61fde2c22319b3329b3473fafd2e2bb.tar.gz
src-66d972cfd61fde2c22319b3329b3473fafd2e2bb.zip
In ipoib_cm_handle_rx_wc(): Count incoming packets and
bytes toward incoming counters. Reviewed by: jeff
Notes
Notes: svn path=/head/; revision=222330
Diffstat (limited to 'sys/ofed')
-rw-r--r--sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_cm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_cm.c b/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_cm.c
index 2d0fd61a43ed..4aaf2163afd7 100644
--- a/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_cm.c
+++ b/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_cm.c
@@ -554,8 +554,8 @@ void ipoib_cm_handle_rx_wc(struct ipoib_dev_priv *priv, struct ib_wc *wc)
ipoib_dma_mb(priv, mb, wc->byte_len);
- ++dev->if_opackets;
- dev->if_obytes += mb->m_pkthdr.len;
+ ++dev->if_ipackets;
+ dev->if_ibytes += mb->m_pkthdr.len;
mb->m_pkthdr.rcvif = dev;
proto = *mtod(mb, uint16_t *);