]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4: Use devl_ API for devlink region create / destroy
authorMoshe Shemesh <moshe@nvidia.com>
Thu, 28 Jul 2022 15:53:46 +0000 (18:53 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 29 Jul 2022 04:58:46 +0000 (21:58 -0700)
commit406c4809e40f4f7961372e2599cca7c240d7eaaf
tree1399d777b56f3046bc703adce6def8742a2b459b
parent9c47dc56b543f67f540d2a3dce04a0a56d05f3f2
net/mlx4: Use devl_ API for devlink region create / destroy

Use devl_ API to call devl_region_create() and devl_region_destroy()
instead of devlink_region_create() and devlink_region_destroy().
Add devlink instance lock in mlx4 driver paths to these functions.

This will be used by the downstream patch to invoke mlx4 devlink reload
callbacks with devlink lock held.

Signed-off-by: Moshe Shemesh <moshe@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx4/crdump.c
drivers/net/ethernet/mellanox/mlx4/main.c