[PATCH v5 1/2] eal: add API for bus close
Thomas Monjalon
thomas at monjalon.net
Wed Jan 19 11:31:55 CET 2022
Hi,
10/01/2022 06:26, rohit.raj at nxp.com:
> From: Rohit Raj <rohit.raj at nxp.com>
>
> As per the current code we have API for bus probe, but the
> bus close API is missing. This breaks the multi process
> scenarios as objects are not cleaned while terminating the
> secondary processes.
>
> This patch adds a new API rte_bus_close() for cleanup of
> bus objects which were acquired during probe.
I don't understand how closing all devices of a bus will help better
than just closing all devices.
As Ferruh already suggested in the past,
we could force closing all devices in rte_eal_cleanup().
And we already have the function rte_dev_remove().
More information about the dev
mailing list