[Intel-wired-lan] [next PATCH S96 5/9] i40e: add a helper function to validate a vf based on the vf id

Bowers, AndrewX andrewx.bowers at intel.com
Wed Aug 29 18:15:24 UTC 2018


> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Alice Michael
> Sent: Tuesday, August 28, 2018 10:16 AM
> To: Michael, Alice <alice.michael at intel.com>; intel-wired-
> lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [next PATCH S96 5/9] i40e: add a helper function to
> validate a vf based on the vf id
> 
> From: Harshitha Ramamurthy <harshitha.ramamurthy at intel.com>
> 
> When we are trying to change VF settings, it is possible for 2 race conditions
> to happen. One, when the VF is created but not yet enabled.
> Second, the VF is enabled but the vsi is still not created or not yet re-created
> in the VF reset flow.
> 
> This patch introduces a helper function to validate that the vf is enabled and
> that the vsi is set up. This patch also calls this function from other functions
> which could get into these race conditions.
> While we are poking around here, remove unnecessary parenthesis that
> checkpatch was complaining about.
> 
> Signed-off-by: Harshitha Ramamurthy <harshitha.ramamurthy at intel.com>
> ---
>  drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c | 62 ++++++++++++++---
> -----
>  1 file changed, 41 insertions(+), 21 deletions(-)

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




More information about the Intel-wired-lan mailing list