]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
pci_iov: When pci_iov_detach(9) is called, destroy VF children
authorKonstantin Belousov <kib@FreeBSD.org>
Fri, 18 Dec 2020 03:46:50 +0000 (03:46 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Fri, 18 Dec 2020 03:46:50 +0000 (03:46 +0000)
commit94f5c1cc7186ae555b962d2450cc17e06fd4fda0
treec3e4673c529090a891274ccf1e1e5aa12156d9ef
parent2bb4be0f86501ec0565dba3d37ce0f7d7fc9c464
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