]> 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)
commit3710c49b8acc28d94b121f22c65c59a4d9096394
tree1399d777b56f3046bc703adce6def8742a2b459b
parentd6ead0f49ed1b5060efb3d735d72d8f4640f599b
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