net/mlx5: Move devlink registration before mlx5_load
authorEli Cohen <elic@nvidia.com>
Tue, 3 Jan 2023 06:48:14 +0000 (08:48 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 24 Mar 2023 23:04:30 +0000 (16:04 -0700)
commitfe578cbb2f053f465e19d2671a523dcd01953888
treeaade17cbc520904ef116b97d4e8be1bc5e7d9540
parent3354822cde5a9f72aa725b3c619188b149a71a33
net/mlx5: Move devlink registration before mlx5_load

In order to allow reference to devlink parameters during driver load,
move the devlink registration before mlx5_load. Subsequent patch will
use it to control the number of completion vectors required based on
whether eth is enabled or not.

Signed-off-by: Eli Cohen <elic@nvidia.com>
Reviewed-by: Shay Drory <shayd@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
drivers/net/ethernet/mellanox/mlx5/core/main.c