[v5 06/42] bus/fslmc: add close API to close DPAA2 device

Thomas Monjalon thomas at monjalon.net
Sun Nov 10 01:04:52 CET 2024


23/10/2024 13:59, vanshika.shukla at nxp.com:
> +static int
> +rte_fslmc_close(void)
> +{
> +       int ret = 0;
> +
> +       ret = fslmc_vfio_close_group();
> +       if (ret)
> +               DPAA2_BUS_ERR("Unable to close devices %d", ret);
> +
> +       return 0;
> +}

You should not try to close if there is no devices on this bus.
The error message is polluting cleanup for everybody.
I change to info log level for now while merging.




More information about the dev mailing list