net/mlx5: Remove devl_unlock from mlx5_devlink_eswitch_mode_set
authorMoshe Shemesh <moshe@nvidia.com>
Mon, 11 Jul 2022 08:14:07 +0000 (01:14 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 12 Jul 2022 08:26:23 +0000 (10:26 +0200)
commit973598d46ede27bb3b2a54ff45135196aeb9efb0
treeee7398d139e52767335394fc552006cbad601190
parent7b19119f4c7dc9412b556ea12fae6b32574e2810
net/mlx5: Remove devl_unlock from mlx5_devlink_eswitch_mode_set

The callback mlx5_devlink_eswitch_mode_set() had unlocked devlink as a
temporary workaround once devlink instance lock was added to devlink
eswitch callbacks. Now that all flows triggered by this function
that took devlink lock are using devl_ API and all parallel paths are
locked we can remove this workaround.

Signed-off-by: Moshe Shemesh <moshe@nvidia.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c