net/mlx5: Move devlink registration before interfaces load
authorMichael Guralnik <michaelgur@mellanox.com>
Wed, 20 Nov 2019 09:43:49 +0000 (11:43 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 6 Jan 2020 23:30:04 +0000 (15:30 -0800)
commita6f3b62386a02c1e94bfa22c543f82d63f5e631b
treec944bcdb1d0c5115bf2526db8ddffeb9149ab5ce
parent99cda45426c9a2c59bb2f7cb886a405440282455
net/mlx5: Move devlink registration before interfaces load

Register devlink before interfaces are added.
This will allow interfaces to use devlink while initalizing. For example,
call mlx5_is_roce_enabled.

Fixes: aba25279c100 ("net/mlx5e: Add TX reporter support")
Signed-off-by: Michael Guralnik <michaelgur@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/main.c