Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Dec 2013 10:57:47 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r259644 - head/sys/dev/ixgbe
Message-ID:  <201312201057.rBKAvlpg010156@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



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