> -----Original Message----- > From: Intel-wired-lan <[email protected]> On Behalf Of Robert > Malz > Sent: Tuesday, May 20, 2025 10:32 AM > To: [email protected]; [email protected]; Nguyen, Anthony > L > <[email protected]>; Kitszel, Przemyslaw > <[email protected]>; [email protected]; > [email protected]; [email protected]; [email protected]; > [email protected]; [email protected]; > [email protected]; Keller, Jacob E <[email protected]> > Subject: [Intel-wired-lan] [PATCH v3 1/2] i40e: return false from > i40e_reset_vf if > reset is in progress > > The function i40e_vc_reset_vf attempts, up to 20 times, to handle a VF reset > request, using the return value of i40e_reset_vf as an indicator of whether > the > reset was successfully triggered. Currently, i40e_reset_vf always returns > true, > which causes new reset requests to be ignored if a different VF reset is > already in > progress. > > This patch updates the return value of i40e_reset_vf to reflect when another > VF > reset is in progress, allowing the caller to properly use the retry mechanism. > > Fixes: 52424f974bc5 ("i40e: Fix VF hang when reset is triggered on another > VF") > Signed-off-by: Robert Malz <[email protected]> > --- > drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c > b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c > index 1120f8e4bb67..22d5b1ec2289 100644 > --- a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c > +++ b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
Tested-by: Rafal Romanowski <[email protected]>
