On Thu, Jun 18, 2026 at 05:28:23PM +0200, David Marchand wrote: > Introduce a generic cleanup helper rte_bus_generic_cleanup() that > eliminates code duplication across bus cleanup implementations: > unplug probed devices, remove devargs, remove from bus list, > and free device structures. > > Add .free_device operation to struct rte_bus to allow buses to specify > how to free their device structures. > Update all buses for the new .cleanup and RTE_REGISTER_BUS prototypes. > > Convert to rte_bus_generic_cleanup() the buses that have both a .cleanup > and .unplug_device: this requires implementing .free_device for them. > > Untouched buses are: > - dma/idxd which has no unplug support, > - bus/cdx which has unplug support, but no cleanup was implemented so > far, > - NXP buses: > - bus/dpaa and bus/fslmc have many issues on interrupt > allocation/setup/freeing or VFIO setup/release, > - bus/fslmc cleanup callback is actually implemented in its internal > VFIO layer and requires too much refactoring, > > Signed-off-by: David Marchand <[email protected]> Acked-by: Bruce Richardson <[email protected]>
- Re: [PATCH v2 02/10] dma/idxd: remove next point... Bruce Richardson
- [PATCH v2 04/10] bus/pci: fix mapping leak in bus cl... David Marchand
- [PATCH v2 05/10] bus/vmbus: fix interrupt leak in cl... David Marchand
- [PATCH v2 06/10] bus/vmbus: allocate interrupt durin... David Marchand
- [PATCH v2 07/10] bus: align unplug with device probe David Marchand
- Re: [PATCH v2 07/10] bus: align unplug with devi... Bruce Richardson
- Re: [PATCH v2 07/10] bus: align unplug with ... David Marchand
- [PATCH v2 08/10] bus: implement cleanup in EAL David Marchand
- Re: [PATCH v2 08/10] bus: implement cleanup in E... Bruce Richardson
- [PATCH v2 09/10] bus/vmbus: store name in bus specif... David Marchand
- Re: [PATCH v2 09/10] bus/vmbus: store name in bu... Bruce Richardson
- [PATCH v2 10/10] bus/vmbus: support unplug David Marchand
- [PATCH v3 00/11] Bus cleanup infrastructure and fixes David Marchand
- [PATCH v3 01/11] bus: fix reference to plug callback David Marchand
- Re: [PATCH v3 01/11] bus: fix reference to plug ... fengchengwen
- [PATCH v3 02/11] dma/idxd: remove next pointer in bu... David Marchand
- [PATCH v3 03/11] bus/vdev: remove driver setting in ... David Marchand
- Re: [PATCH v3 03/11] bus/vdev: remove driver set... fengchengwen
- [PATCH v3 04/11] bus/pci: fix mapping leak in bus cl... David Marchand

