diff options
author | jfv <jfv@FreeBSD.org> | 2009-09-11 00:00:23 +0000 |
---|---|---|
committer | jfv <jfv@FreeBSD.org> | 2009-09-11 00:00:23 +0000 |
commit | f7f200d12d205da289929f0b9118c36acb30e16b (patch) | |
tree | ba7d62735fddc8e2c32beb59f5878f734811c8cf /sys/dev/ixgbe | |
parent | 9c5bffc4a5e22249aecbdf0423cea18bf10b155e (diff) | |
download | FreeBSD-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.c | 6 |
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) |