Commit 1158b7d1 authored by Roi Dayan's avatar Roi Dayan Committed by Saeed Mahameed
Browse files

net/mlx5: E-switch, Remove redundant comment about meta rules



Meta rules are created/destroyed per vport and not in eswitch
init/destroy.

Signed-off-by: default avatarRoi Dayan <roid@nvidia.com>
Reviewed-by: default avatarMaor Dickman <maord@nvidia.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
parent d3c8a33a
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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);