[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CADcc-bx=0eAQmndocG4B+PWnzLKOajDT=9E6kM_XLZ4XR1rekg@mail.gmail.com>
Date: Fri, 16 May 2025 11:48:31 +0200
From: Robert Malz <robert.malz@...onical.com>
To: "Nelson, Shannon" <shannon.nelson@....com>
Cc: netdev@...r.kernel.org, intel-wired-lan@...ts.osuosl.org,
anthony.l.nguyen@...el.com, przemyslaw.kitszel@...el.com,
andrew+netdev@...n.ch, davem@...emloft.net, edumazet@...gle.com,
kuba@...nel.org, pabeni@...hat.com, sylwesterx.dziedziuch@...el.com,
mateusz.palczewski@...el.com, jacob.e.keller@...el.com
Subject: Re: [PATCH 2/2] i40e: retry VFLR handling if there is ongoing VF reset
On Fri, May 16, 2025 at 12:40 AM Nelson, Shannon <shannon.nelson@....com> wrote:
>
> On 5/14/2025 7:57 AM, Robert Malz wrote:
> >
> > When a VFLR interrupt is received during a VF reset initiated from a
> > different source, the VFLR may be not fully handled. This can
> > leave the VF in an undefined state.
> > To address this, set the I40E_VFLR_EVENT_PENDING bit again during VFLR
> > handling if the reset is not yet complete. This ensures the driver
> > will properly complete the VF reset in such scenarios.
> >
> > Fixes: 52424f974bc5 ("i40e: Fix VF hang when reset is triggered on another VF")
> > Signed-off-by: Robert Malz <robert.malz@...onical.com>
> > ---
> > drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c | 9 ++++++---
> > 1 file changed, 6 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 abd72ab36af7..6b13ac85016f 100644
> > --- a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
> > +++ b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
> > @@ -1546,8 +1546,8 @@ static void i40e_cleanup_reset_vf(struct i40e_vf *vf)
> > * @vf: pointer to the VF structure
> > * @flr: VFLR was issued or not
> > *
> > - * Returns true if resets are disabled or was performed successfully,
> > - * false if reset is already in progress.
> > + * Returns true if reset was performed successfully or if resets are
> > + * disabled. False if reset is already in progress.
>
> You also changed this wording in patch 1/2. Let's keep the
> i40e_reset_vf() description changes in the other patch where that
> function is changed.
>
> sln
Thanks for pointing this out, fixed in v2
Robert
Powered by blists - more mailing lists