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: Shannon Nelson <shannon.nelson@intel.com> Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com> Tested-by: Kavindya Deegala <kavindya.s.deegala@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
54692b403c
commit
d52cf0a948
|
@ -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++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue