net/mlx5: Rename mlx5_sf_deactivate_all() to mlx5_sf_del_all()
authorJiri Pirko <jiri@nvidia.com>
Fri, 2 Jun 2023 13:54:39 +0000 (15:54 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 20 Sep 2023 06:33:07 +0000 (23:33 -0700)
The function does not do deactivation, but it deletes all SFs instead.
Rename accordingly.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Shay Drory <shayd@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/sf/devlink.c

index bed3fe8759d2bf42337f4c8ac615c0a4106c14f7..454185ef04f3e1b2acdcfce9e53e4b597aae3a91 100644 (file)
@@ -437,7 +437,7 @@ static void mlx5_sf_table_enable(struct mlx5_sf_table *table)
        refcount_set(&table->refcount, 1);
 }
 
-static void mlx5_sf_deactivate_all(struct mlx5_sf_table *table)
+static void mlx5_sf_del_all(struct mlx5_sf_table *table)
 {
        struct mlx5_eswitch *esw = table->dev->priv.eswitch;
        unsigned long index;
@@ -463,7 +463,7 @@ static void mlx5_sf_table_disable(struct mlx5_sf_table *table)
        mlx5_sf_table_put(table);
        wait_for_completion(&table->disable_complete);
 
-       mlx5_sf_deactivate_all(table);
+       mlx5_sf_del_all(table);
 }
 
 static int mlx5_sf_esw_event(struct notifier_block *nb, unsigned long event, void *data)