Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Dec 2008 04:42:39 +0000 (UTC)
From:      Kip Macy <kmacy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r185507 - head/sys/dev/cxgb
Message-ID:  <200812010442.mB14gdi6012540@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kmacy
Date: Mon Dec  1 04:42:39 2008
New Revision: 185507
URL: http://svn.freebsd.org/changeset/base/185507

Log:
  don't manually track statistics

Modified:
  head/sys/dev/cxgb/cxgb_sge.c

Modified: head/sys/dev/cxgb/cxgb_sge.c
==============================================================================
--- head/sys/dev/cxgb/cxgb_sge.c	Mon Dec  1 04:41:45 2008	(r185506)
+++ head/sys/dev/cxgb/cxgb_sge.c	Mon Dec  1 04:42:39 2008	(r185507)
@@ -1890,11 +1890,6 @@ t3_free_tx_desc(struct sge_txq *q, int r
 			buf_ring_scan(&q->txq_mr, txsd->mi.mi_base, __FILE__, __LINE__);
 #endif
 			txsd->mi.mi_base = NULL;
-			/*
-			 * XXX check for cache hit rate here
-			 *
-			 */
-			q->port->ifp->if_opackets++;
 		} else
 			q->txq_skipped++;
 		
@@ -2509,7 +2504,6 @@ t3_rx_eth(struct adapter *adap, struct s
 	
 	m->m_pkthdr.rcvif = ifp;
 	m->m_pkthdr.header = mtod(m, uint8_t *) + sizeof(*cpl) + ethpad;
-	ifp->if_ipackets++;
 #ifndef DISABLE_MBUF_IOVEC
 	m_explode(m);
 #endif	



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