]> git.droids-corp.org - dpdk.git/commit
common/mlx5: fix probing failure code
authorBing Zhao <bingz@nvidia.com>
Mon, 17 Jan 2022 17:49:14 +0000 (19:49 +0200)
committerRaslan Darawsheh <rasland@nvidia.com>
Wed, 26 Jan 2022 16:41:12 +0000 (17:41 +0100)
commitb4a4159d4e6323dd9ccd31d11cfe42bbc1e897f6
treef9d9586c498c7028b72cc1d188922bf7572059dc
parent082becbf1f35bda03a9ad80fcd7fe4afe3aea7be
common/mlx5: fix probing failure code

While probing the device with unsupported class, the process should
fail because no appropriate driver was found. After traversing all
the drivers, an error value should be returned for the case.

In the previous implementation, zero value indicating probing success
was wrongly returned.

Fixes: ad435d320473 ("common/mlx5: add bus-agnostic layer")
Cc: stable@dpdk.org
Signed-off-by: Bing Zhao <bingz@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/common/mlx5/mlx5_common.c