net/mlx5: Push common deletion code into mlx5_sf_del()
authorJiri Pirko <jiri@nvidia.com>
Fri, 2 Jun 2023 14:02:52 +0000 (16:02 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 20 Sep 2023 06:33:07 +0000 (23:33 -0700)
commita3cc822beacc7ccabc6966e75e721944818f37ff
tree8ce7d1e8162cd4227f4ca672730955449d897135
parenta65362f2be8daec046f371ada0e0f9f9cd8ed5dd
net/mlx5: Push common deletion code into mlx5_sf_del()

Don't call the same functions for SF deletion on multiple places.
Instead, introduce a helper mlx5_sf_del() and move the code there.

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