net/mlx5: Move state lock taking into mlx5_sf_dealloc()
authorJiri Pirko <jiri@nvidia.com>
Fri, 2 Jun 2023 13:51:42 +0000 (15:51 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 20 Sep 2023 06:33:06 +0000 (23:33 -0700)
commit9497036dfbb8db1fda3915ae72f35db161f09e59
tree0d43a0bf71d9a507385902d01caac6ee3d243da3
parent2284a4836251b3dee348172f69ac84157aa7b03e
net/mlx5: Move state lock taking into mlx5_sf_dealloc()

Instead of taking lock and calling mlx5_sf_dealloc(), move the lock
taking into mlx5_sf_dealloc(). The other caller of mlx5_sf_dealloc()
does not need it now, but will need it after a follow-up patch removing
the table reference counting.

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