[PATCH] net/mlx5/hws: change error flow on matcher disconnect
Dariusz Sosnowski
dsosnowski at nvidia.com
Wed Feb 26 09:44:17 CET 2025
> -----Original Message-----
> From: Gregory Etelson <getelson at nvidia.com>
> Sent: Sunday, February 9, 2025 2:48 PM
> To: dev at dpdk.org
> Cc: Gregory Etelson <getelson at nvidia.com>; Maayan Kashani
> <mkashani at nvidia.com>; Raslan Darawsheh <rasland at nvidia.com>; Itamar
> Gozlan <igozlan at nvidia.com>
> Subject: [PATCH] net/mlx5/hws: change error flow on matcher disconnect
>
> External email: Use caution opening links or attachments
>
>
> From: Itamar Gozlan <igozlan at nvidia.com>
>
> Currently, when a firmware (FW) failure occurs during matcher error flow, the
> system attempts to reconnect the matcher, leading to a segmentation fault. This
> happens because the matcher is freed but remains in the list.
>
> Example scenario:
> Given matchers M1->M2->M3, if a FW failure occurs:
> 1. System tries to destroy M1 and fails
> 2. M1 remains in the list but is freed
> 3. When destroying M2, it attempts to remove itself and create M1->M3 4. This
> results in a segmentation fault as M1 is already freed
>
> Signed-off-by: Itamar Gozlan <igozlan at nvidia.com>
Acked-by: Dariusz Sosnowski <dsosnowski at nvidia.com>
Best regards,
Dariusz Sosnowski
More information about the dev
mailing list