]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Delete auxiliary bus driver eth-rep first
authorMaor Dickman <maord@nvidia.com>
Mon, 22 Mar 2021 15:22:03 +0000 (17:22 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 31 Mar 2021 20:12:21 +0000 (13:12 -0700)
commit1f90aedfb496ccccf862c7b7c0889af20c2fc61a
treee7dabd7b3b9c8d92c0fe658d5b92830601b5bb9d
parentd24f847e54214049814b9515771622eaab3f42ab
net/mlx5: Delete auxiliary bus driver eth-rep first

Delete auxiliary bus drivers flow deletes the eth driver
first and then the eth-reps driver but eth-reps devices resources
are depend on eth device.

Fixed by changing the delete order of auxiliary bus drivers to delete
the eth-rep driver first and after it the eth driver.

Fixes: 601c10c89cbb ("net/mlx5: Delete custom device management logic")
Signed-off-by: Maor Dickman <maord@nvidia.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/dev.c