igb: Add counter to i21x doublecheck
authorGrzegorz Siwik <grzegorz.siwik@intel.com>
Fri, 30 Apr 2021 12:41:30 +0000 (14:41 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 23 Jul 2021 16:08:11 +0000 (09:08 -0700)
commit07be39e32d0aedef3a0155874b92dd7227aa94d7
tree4834b1f30aac9ce3c7e9ba25d04cabd56cf28c66
parent356ae88f8322066a2cd1aee831b7fb768ff2905c
igb: Add counter to i21x doublecheck

Add failed_counter to i21x_doublecheck(). There is possibility that
loop will never end.
With this patch the loop will stop after maximum 3 retries
to write to MTA_REGISTER

Signed-off-by: Grzegorz Siwik <grzegorz.siwik@intel.com>
Tested-by: Tony Brelinski <tonyx.brelinski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/igb/e1000_mac.c