[Intel-wired-lan] [PATCH iwl-next v4 01/13] ice: Skip adv rules removal upon switchdev release
Simon Horman
simon.horman at corigine.com
Sun Jun 4 08:17:14 UTC 2023
On Wed, May 24, 2023 at 02:21:09PM +0200, Wojciech Drewek wrote:
> Advanced rules for ctrl VSI will be removed anyway when the
> VSI will cleaned up, no need to do it explicitly.
>
> Reviewed-by: Paul Menzel <pmenzel at molgen.mpg.de>
> Signed-off-by: Wojciech Drewek <wojciech.drewek at intel.com>
This looks good to me.
Reviewed-by: Simon Horman <simon.horman at corigine.com>
As a follow-up perhaps ice_rem_adv_rule_for_vsi() can be removed.
It seems to be unused after this patch.
> ---
> drivers/net/ethernet/intel/ice/ice_eswitch.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/net/ethernet/intel/ice/ice_eswitch.c b/drivers/net/ethernet/intel/ice/ice_eswitch.c
> index ad0a007b7398..be5b22691f7c 100644
> --- a/drivers/net/ethernet/intel/ice/ice_eswitch.c
> +++ b/drivers/net/ethernet/intel/ice/ice_eswitch.c
> @@ -503,7 +503,6 @@ static void ice_eswitch_disable_switchdev(struct ice_pf *pf)
>
> ice_eswitch_napi_disable(pf);
> ice_eswitch_release_env(pf);
> - ice_rem_adv_rule_for_vsi(&pf->hw, ctrl_vsi->idx);
> ice_eswitch_release_reprs(pf, ctrl_vsi);
> ice_vsi_release(ctrl_vsi);
> ice_repr_rem_from_all_vfs(pf);
> --
> 2.40.1
>
>
More information about the Intel-wired-lan
mailing list