net/mlx4: Use devl_ API for devlink port register / unregister
authorMoshe Shemesh <moshe@nvidia.com>
Thu, 28 Jul 2022 15:53:47 +0000 (18:53 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 29 Jul 2022 04:58:47 +0000 (21:58 -0700)
commita8c05514b2f8fe105d69796cce31fb344c50fb2a
tree342a0173e6e45483c02e5ab06c172313437f14bf
parent9cb7e94a78b54f935de602f514313e73cc5b8a48
net/mlx4: Use devl_ API for devlink port register / unregister

Use devl_ API to call devl_port_register() and devl_port_unregister()
instead of devlink_port_register() and devlink_port_unregister(). 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/main.c