svn commit: r185507 - head/sys/dev/cxgb

Kip Macy kmacy at FreeBSD.org
Sun Nov 30 20:42:40 PST 2008


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	


More information about the svn-src-head mailing list