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
This commit is contained in:
Jack F Vogel 2009-09-11 00:00:23 +00:00
parent 06acf4bc6f
commit ac54649762
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=197084

View File

@ -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)