Commit d52cf0a9 authored by Shannon Nelson's avatar Shannon Nelson Committed by Jeff Kirsher

i40e: select reset counters correctly

The indication for telling which reset happened is a value, not a
bit pattern, so select by ==, not &.

Change-Id: Ie04097388ff16b85015d6ab1236d7511ef653e8c
Signed-off-by: default avatarShannon Nelson <shannon.nelson@intel.com>
Signed-off-by: default avatarJesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: default avatarKavindya Deegala <kavindya.s.deegala@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 54692b40
......@@ -2790,11 +2790,11 @@ static irqreturn_t i40e_intr(int irq, void *data)
val = rd32(hw, I40E_GLGEN_RSTAT);
val = (val & I40E_GLGEN_RSTAT_RESET_TYPE_MASK)
>> I40E_GLGEN_RSTAT_RESET_TYPE_SHIFT;
if (val & I40E_RESET_CORER)
if (val == I40E_RESET_CORER)
pf->corer_count++;
else if (val & I40E_RESET_GLOBR)
else if (val == I40E_RESET_GLOBR)
pf->globr_count++;
else if (val & I40E_RESET_EMPR)
else if (val == I40E_RESET_EMPR)
pf->empr_count++;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment