Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 May 2011 22:29:43 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r222330 - head/sys/ofed/drivers/infiniband/ulp/ipoib
Message-ID:  <201105262229.p4QMThXS083358@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Thu May 26 22:29:43 2011
New Revision: 222330
URL: http://svn.freebsd.org/changeset/base/222330

Log:
  In ipoib_cm_handle_rx_wc(): Count incoming packets and
  bytes toward incoming counters.
  
  Reviewed by:	jeff

Modified:
  head/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_cm.c

Modified: head/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_cm.c
==============================================================================
--- head/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_cm.c	Thu May 26 22:05:35 2011	(r222329)
+++ head/sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_cm.c	Thu May 26 22:29:43 2011	(r222330)
@@ -554,8 +554,8 @@ void ipoib_cm_handle_rx_wc(struct ipoib_
 
 	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 *);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105262229.p4QMThXS083358>