[PATCH] bus/cdx: silence bus scan when CDX is unavailable

Gupta, Nipun Nipun.Gupta at amd.com
Fri Jun 9 13:14:09 CEST 2023


[Public]

Acked-by: Nipun Gupta <nipun.gupta at amd.com>

> -----Original Message-----
> From: David Marchand <david.marchand at redhat.com>
> Sent: Friday, June 9, 2023 4:41 PM
> To: dev at dpdk.org
> Cc: Gupta, Nipun <Nipun.Gupta at amd.com>; Agarwal, Nikhil
> <nikhil.agarwal at amd.com>; Yigit, Ferruh <Ferruh.Yigit at amd.com>
> Subject: [PATCH] bus/cdx: silence bus scan when CDX is unavailable
>
> Absence of the CDX bus is not an error.
>
> Bugzilla ID: 1246
> Fixes: 45ef232af515 ("bus/cdx: introduce AMD CDX bus")
>
> Signed-off-by: David Marchand <david.marchand at redhat.com>
> ---
>  drivers/bus/cdx/cdx.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/bus/cdx/cdx.c b/drivers/bus/cdx/cdx.c
> index 9607096d18..28bbf92ed5 100644
> --- a/drivers/bus/cdx/cdx.c
> +++ b/drivers/bus/cdx/cdx.c
> @@ -268,9 +268,9 @@ cdx_scan(void)
>
>       dir = opendir(RTE_CDX_BUS_DEVICES_PATH);
>       if (dir == NULL) {
> -             CDX_BUS_ERR("%s(): opendir failed: %s", __func__,
> +             CDX_BUS_INFO("%s(): opendir failed: %s", __func__,
>                       strerror(errno));
> -             return -1;
> +             return 0;
>       }
>
>       while ((e = readdir(dir)) != NULL) {
> --
> 2.40.1



More information about the dev mailing list