[Intel-wired-lan] [next PATCH S7 4/9] i40e: don't report link up for a VF who hasn't enabled queues
Bowers, AndrewX
andrewx.bowers at intel.com
Wed Jul 3 21:40:29 UTC 2019
> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Alice Michael
> Sent: Tuesday, July 2, 2019 5:23 AM
> To: Michael, Alice <alice.michael at intel.com>; intel-wired-
> lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [next PATCH S7 4/9] i40e: don't report link up for a
> VF who hasn't enabled queues
>
> From: Jacob Keller <jacob.e.keller at intel.com>
>
> Commit d3d657a90850 ("i40e: update VFs of link state after
> GET_VF_RESOURCES") modified the PF driver to notify a VF of its link status
> immediately after it requests resources.
>
> This was intended to fix reporting on VF drivers, so that they would properly
> report link status.
>
> However, some older VF drivers do not respond well to receiving a link up
> notification before queues are enabled. This can cause their state machine to
> think that it is safe to send traffic. This results in a Tx hang on the VF.
>
> More recent versions of the old i40evf and all versions of iavf are resilient to
> these early link status messages. However, if a VM happens to run an older
> version of the VF driver, this can be problematic.
>
> Record whether the PF has actually enabled queues for the VF. When
> reporting link status, always report link down if the queues aren't enabled. In
> this way, the VF driver will never receive a link up notification until after its
> queues are enabled.
>
> Signed-off-by: Jacob Keller <jacob.e.keller at intel.com>
> ---
> drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c | 13 ++++++++++++-
> drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.h | 1 +
> 2 files changed, 13 insertions(+), 1 deletion(-)
Tested-by: Andrew Bowers <andrewx.bowers at intel.com>
More information about the Intel-wired-lan
mailing list