[Intel-wired-lan] [next PATCH] i40e: prevent overlapping tx_timeout recover

Bowers, AndrewX andrewx.bowers at intel.com
Wed Oct 31 21:37:48 UTC 2018


> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Alice Michael
> Sent: Monday, October 29, 2018 11:27 AM
> To: Michael, Alice <alice.michael at intel.com>; intel-wired-
> lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [next PATCH] i40e: prevent overlapping tx_timeout
> recover
> 
> From: Alan Brady <alan.brady at intel.com>
> 
> If a TX hang occurs, we attempt to recover by incrementally resetting.
> If we're starved for CPU time, it's possible the reset doesn't actually
> complete (or even fire) before another tx_timeout fires causing us to fly
> through the different resets without actually doing them.
> 
> This adds a bit to set and check if a timeout recovery is already pending and,
> if so, bail out of tx_timeout.  The bit will get cleared at the end of
> i40e_rebuild when reset is complete.
> 
> Signed-off-by: Alan Brady <alan.brady at intel.com>
> ---
>  drivers/net/ethernet/intel/i40e/i40e.h      | 1 +
>  drivers/net/ethernet/intel/i40e/i40e_main.c | 5 +++++
>  2 files changed, 6 insertions(+)

Tested-by: Andrew Bowers <andrewx.bowers at intel.com>




More information about the Intel-wired-lan mailing list