]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1df6a16f9b8bf41c0bb5ab4d870440f36f210420
treec944bcdb1d0c5115bf2526db8ddffeb9149ab5ce
parent6505ce9266bb8032f4a2027f428aaefc1efafc32
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: 92831be782df ("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