]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit9cb7e94a78b54f935de602f514313e73cc5b8a48
tree1399d777b56f3046bc703adce6def8742a2b459b
parent84a433a40d0ebf3bbf36b8bfa58c6f45dc782344
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