Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Jul 2010 20:28:45 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r210174 - stable/7/sys/dev/cxgb
Message-ID:  <201007162028.o6GKSjn4013711@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Fri Jul 16 20:28:45 2010
New Revision: 210174
URL: http://svn.freebsd.org/changeset/base/210174

Log:
  MFC 185507:
  Don't manually track statistics.

Modified:
  stable/7/sys/dev/cxgb/cxgb_sge.c
Directory Properties:
  stable/7/sys/   (props changed)
  stable/7/sys/cddl/contrib/opensolaris/   (props changed)
  stable/7/sys/contrib/dev/acpica/   (props changed)
  stable/7/sys/contrib/pf/   (props changed)

Modified: stable/7/sys/dev/cxgb/cxgb_sge.c
==============================================================================
--- stable/7/sys/dev/cxgb/cxgb_sge.c	Fri Jul 16 20:23:24 2010	(r210173)
+++ stable/7/sys/dev/cxgb/cxgb_sge.c	Fri Jul 16 20:28:45 2010	(r210174)
@@ -1889,11 +1889,6 @@ t3_free_tx_desc(struct sge_txq *q, int r
 			m_freem_iovec(&txsd->mi);	
 			buf_ring_scan(&q->txq_mr, txsd->mi.mi_base, __FILE__, __LINE__);
 			txsd->mi.mi_base = NULL;
-			/*
-			 * XXX check for cache hit rate here
-			 *
-			 */
-			q->port->ifp->if_opackets++;
 #if defined(DIAGNOSTIC) && 0
 			if (m_get_priority(txsd->m[0]) != cidx) 
 				printf("pri=%d cidx=%d\n",
@@ -2515,7 +2510,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?201007162028.o6GKSjn4013711>