]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
pci_iov: When pci_iov_detach(9) is called, destroy VF children
authorkib <kib@FreeBSD.org>
Fri, 18 Dec 2020 03:46:50 +0000 (03:46 +0000)
committerkib <kib@FreeBSD.org>
Fri, 18 Dec 2020 03:46:50 +0000 (03:46 +0000)
commitbebe92761b3057aa92f30bf2e6bee49a9a448c93
treec3e4673c529090a891274ccf1e1e5aa12156d9ef
parent44a544d41c504fbe37f836eb503e4ae721daada9
pci_iov: When pci_iov_detach(9) is called, destroy VF children

instead of bailing out with EBUSY if there are any.

If driver module is unloaded, or just device is forcibly detached from
the driver, there is no way for driver to correctly unload otherwise.
Esp. if there are resources dedicated to the VFs which prevent turning
down other resources.

Reviewed by: jhb
Sponsored by: Mellanox Technologies / NVidia Networking
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D27615
sys/dev/pci/pci_iov.c