net/mlx5: E-switch, Remove redundant comment about meta rules
authorRoi Dayan <roid@nvidia.com>
Thu, 17 Nov 2022 09:36:39 +0000 (11:36 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 18 Jan 2023 18:34:07 +0000 (10:34 -0800)
Meta rules are created/destroyed per vport and not in eswitch
init/destroy.

Signed-off-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Maor Dickman <maord@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c

index bbb6dab..05a352d 100644 (file)
@@ -1406,9 +1406,7 @@ void mlx5_eswitch_disable_sriov(struct mlx5_eswitch *esw, bool clear_vf)
        mlx5_eswitch_unload_vf_vports(esw, esw->esw_funcs.num_vfs);
        if (clear_vf)
                mlx5_eswitch_clear_vf_vports_info(esw);
-       /* If disabling sriov in switchdev mode, free meta rules here
-        * because it depends on num_vfs.
-        */
+
        if (esw->mode == MLX5_ESWITCH_OFFLOADS) {
                struct devlink *devlink = priv_to_devlink(esw->dev);