svn commit: r259644 - head/sys/dev/ixgbe

Gleb Smirnoff glebius at FreeBSD.org
Fri Dec 20 10:57:47 UTC 2013


Author: glebius
Date: Fri Dec 20 10:57:47 2013
New Revision: 259644
URL: http://svnweb.freebsd.org/changeset/base/259644

Log:
  ixgbe(4) takes packet counters from hardware in ixgbe_update_stats_counters(),
  so we don't need to do a per packet increment, which trashes cache line.
  
  Submitted by:	oleg

Modified:
  head/sys/dev/ixgbe/ixgbe.c

Modified: head/sys/dev/ixgbe/ixgbe.c
==============================================================================
--- head/sys/dev/ixgbe/ixgbe.c	Fri Dec 20 10:49:57 2013	(r259643)
+++ head/sys/dev/ixgbe/ixgbe.c	Fri Dec 20 10:57:47 2013	(r259644)
@@ -3696,7 +3696,6 @@ ixgbe_txeof(struct tx_ring *txr)
 		}
 		++txr->packets;
 		++processed;
-		++ifp->if_opackets;
 		txr->watchdog_time = ticks;
 
 		/* Try the next packet */
@@ -4553,7 +4552,6 @@ ixgbe_rxeof(struct ix_queue *que)
 			mp->m_next = nbuf->buf;
 		} else { /* Sending this frame */
 			sendmp->m_pkthdr.rcvif = ifp;
-			ifp->if_ipackets++;
 			rxr->rx_packets++;
 			/* capture data for AIM */
 			rxr->bytes += sendmp->m_pkthdr.len;


More information about the svn-src-all mailing list