[PATCH] common/mlx5: fix error handling in multi-class probe
Raslan Darawsheh
rasland at nvidia.com
Thu Jan 6 10:05:04 CET 2022
Hi,
> -----Original Message-----
> From: Michael Baum <michaelba at nvidia.com>
> Sent: Thursday, November 25, 2021 12:03 AM
> To: dev at dpdk.org
> Cc: Matan Azrad <matan at nvidia.com>; Raslan Darawsheh
> <rasland at nvidia.com>; Slava Ovsiienko <viacheslavo at nvidia.com>; Michael
> Baum <michaelba at nvidia.com>; stable at dpdk.org
> Subject: [PATCH] common/mlx5: fix error handling in multi-class probe
>
> From: Michael Baum <michaelba at nvidia.com>
>
> The common drivers_probe function calls in a loop to all probe functions
> for classes requested by the user. After it manages to probe them all,
> it updates this on the device in the "classes_loaded" field.
>
> If one of them fails, all those probed to it are remove using the
> drivers_remove function. However, this function only releases the
> classes in the "classes_loaded" field on the given device and misses the
> newly probed classes.
>
> This patch removes the condition from the release function, and ensures
> that the caller function sends a more accurate parameter.
>
> Fixes: 8a41f4deccc3 ("common/mlx5: introduce layer for multiple class
> drivers")
> Cc: stable at dpdk.org
>
> Signed-off-by: Michael Baum <michaelba at nvidia.com>
> Acked-by: Matan Azrad <matan at nvidia.com>
Patch applied to next-net-mlx,
Kindest regards,
Raslan Darawsheh
More information about the stable
mailing list