]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Properly cleanup driver during remove_one() in mlx5core.
authorHans Petter Selasky <hselasky@FreeBSD.org>
Wed, 7 Oct 2020 17:46:49 +0000 (17:46 +0000)
committerHans Petter Selasky <hselasky@FreeBSD.org>
Wed, 7 Oct 2020 17:46:49 +0000 (17:46 +0000)
commit194ddc011ad10900a405fb81cf48a022badf77b8
treeae57aa8512f44e2e71e223967d845b64fb237a18
parente7a39b856a8c21b02f4e3f85ed6d1dd82750dfa8
Properly cleanup driver during remove_one() in mlx5core.

Cleanup all host resources, SYSCTLs, MSIX vectors and memory used
by the host and only leave the device allocated memory behind, if any,
because it may still be in use, when the PCI remove function is called.
Else future probe calls may fail due to SYSCTLs already existing.

MFC after: 1 week
Sponsored by: Mellanox Technologies // NVIDIA Networking
sys/dev/mlx5/mlx5_core/mlx5_main.c