> -----Original Message-----
> From: Intel-wired-lan <[email protected]> On Behalf Of
> Dave Ertman
> Sent: Saturday, November 18, 2023 3:43 AM
> To: [email protected]
> Subject: [Intel-wired-lan] [PATCH iwl-net v3] ice: Fix VF Reset paths when
> interface in a failed over aggregate
> 
> There is an error when an interface has the following conditions:
> - PF is in an aggregate (bond)
> - PF has VFs created on it
> - bond is in a state where it is failed-over to the secondary interface
> - A VF reset is issued on one or more of those VFs
> 
> The issue is generated by the originating PF trying to rebuild or reconfigure
> the VF resources.  Since the bond is failed over to the secondary interface 
> the
> queue contexts are in a modified state.
> 
> To fix this issue, have the originating interface reclaim its resources prior 
> to
> the tear-down and rebuild or reconfigure.  Then after the process is
> complete, move the resources back to the currently active interface.
> 
> There are multiple paths that can be used depending on what triggered the
> event, so create a helper function to move the queues and use paired calls to
> the helper (back to origin, process, then move back to active interface) under
> the same lag_mutex lock.
> 
> Fixes: 1e0f9881ef79 ("ice: Flesh out implementation of support for SRIOV on
> bonded interface")
> Signed-off-by: Dave Ertman <[email protected]>
> ---
>  drivers/net/ethernet/intel/ice/ice_lag.c      | 122 +++++++++++-------
>  drivers/net/ethernet/intel/ice/ice_lag.h      |   1 +
>  drivers/net/ethernet/intel/ice/ice_vf_lib.c   |  20 +++
>  drivers/net/ethernet/intel/ice/ice_virtchnl.c |  25 ++++
>  4 files changed, 118 insertions(+), 50 deletions(-)
> 
Tested-by: Sujai Buvaneswaran <[email protected]>
_______________________________________________
Intel-wired-lan mailing list
[email protected]
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan

Reply via email to