]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Remove all auxiliary devices at the unregister event
authorLeon Romanovsky <leonro@nvidia.com>
Sat, 21 Aug 2021 12:05:11 +0000 (15:05 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 26 Aug 2021 22:15:41 +0000 (15:15 -0700)
commit4cca7d460f4427eada5dad924a0af13e59daa11c
treebfa29436dd5831c1b4c0605a51605f872ef7b45d
parent4eabc94b544413067491f3d43a0b5fb8b1546bb3
net/mlx5: Remove all auxiliary devices at the unregister event

The call to mlx5_unregister_device() means that mlx5_core driver is
removed. In such scenario, we need to disregard all other flags like
attach/detach and forcibly remove all auxiliary devices.

Fixes: d67b285e3c20 ("net/mlx5e: Don't create devices during unload flow")
Tested-and-Reported-by: Yicong Yang <yangyicong@hisilicon.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/dev.c