svn commit: r197084 - head/sys/dev/ixgbe
Jack F Vogel
jfv at FreeBSD.org
Fri Sep 11 00:00:23 UTC 2009
Author: jfv
Date: Fri Sep 11 00:00:23 2009
New Revision: 197084
URL: http://svn.freebsd.org/changeset/base/197084
Log:
Stats missed packet handling was still not quite
right, thanks to Dmitrij Tejblum for the correction,
need a variable with scope only within the for loop
for all queues.
MFC: 3 days
Modified:
head/sys/dev/ixgbe/ixgbe.c
Modified: head/sys/dev/ixgbe/ixgbe.c
==============================================================================
--- head/sys/dev/ixgbe/ixgbe.c Thu Sep 10 23:30:13 2009 (r197083)
+++ head/sys/dev/ixgbe/ixgbe.c Fri Sep 11 00:00:23 2009 (r197084)
@@ -4480,9 +4480,11 @@ ixgbe_update_stats_counters(struct adapt
adapter->stats.crcerrs += IXGBE_READ_REG(hw, IXGBE_CRCERRS);
for (int i = 0; i < 8; i++) {
+ u32 mp;
+ mp = IXGBE_READ_REG(hw, IXGBE_MPC(i));
/* missed_rx tallies misses for the gprc workaround */
- missed_rx += IXGBE_READ_REG(hw, IXGBE_MPC(i));
- adapter->stats.mpc[i] += missed_rx;
+ missed_rx += mp;
+ adapter->stats.mpc[i] += mp;
/* Running comprehensive total for stats display */
total_missed_rx += adapter->stats.mpc[i];
if (hw->mac.type == ixgbe_mac_82598EB)
More information about the svn-src-all
mailing list