]> git.dujemihanovic.xyz Git - linux.git/commit
i40e: Fix to stop tx_timeout recovery if GLOBR fails
authorAlan Brady <alan.brady@intel.com>
Tue, 2 Aug 2022 08:19:17 +0000 (10:19 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 16 Aug 2022 15:54:37 +0000 (08:54 -0700)
commit57c942bc3bef0970f0b21f8e0998e76a900ea80d
treea8abfd7df9b60ce676077be3e2b8cff903b662b4
parent2c6482091f01ba104cf8ee549aa5c717e80d43ea
i40e: Fix to stop tx_timeout recovery if GLOBR fails

When a tx_timeout fires, the PF attempts to recover by incrementally
resetting.  First we try a PFR, then CORER and finally a GLOBR.  If the
GLOBR fails, then we keep hitting the tx_timeout and incrementing the
recovery level and issuing dmesgs, which is both annoying to the user
and accomplishes nothing.

If the GLOBR fails, then we're pretty much totally hosed, and there's
not much else we can do to recover, so this makes it such that we just
kill the VSI and stop hitting the tx_timeout in such a case.

Fixes: 41c445ff0f48 ("i40e: main driver core")
Signed-off-by: Alan Brady <alan.brady@intel.com>
Signed-off-by: Mateusz Palczewski <mateusz.palczewski@intel.com>
Tested-by: Gurucharan <gurucharanx.g@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c