summaryrefslogtreecommitdiffstats
path: root/sys/dev/ixgbe
diff options
context:
space:
mode:
authorjfv <jfv@FreeBSD.org>2009-09-11 00:00:23 +0000
committerjfv <jfv@FreeBSD.org>2009-09-11 00:00:23 +0000
commitf7f200d12d205da289929f0b9118c36acb30e16b (patch)
treeba7d62735fddc8e2c32beb59f5878f734811c8cf /sys/dev/ixgbe
parent9c5bffc4a5e22249aecbdf0423cea18bf10b155e (diff)
downloadFreeBSD-src-f7f200d12d205da289929f0b9118c36acb30e16b.zip
FreeBSD-src-f7f200d12d205da289929f0b9118c36acb30e16b.tar.gz
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
Diffstat (limited to 'sys/dev/ixgbe')
-rw-r--r--sys/dev/ixgbe/ixgbe.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/ixgbe/ixgbe.c b/sys/dev/ixgbe/ixgbe.c
index 008ded8..fb5ea51 100644
--- a/sys/dev/ixgbe/ixgbe.c
+++ b/sys/dev/ixgbe/ixgbe.c
@@ -4480,9 +4480,11 @@ ixgbe_update_stats_counters(struct adapter *adapter)
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)
OpenPOWER on IntegriCloud