[PATCH] net/mlx5/hws: change error flow on matcher disconnect
Raslan Darawsheh
rasland at nvidia.com
Wed Feb 26 14:52:17 CET 2025
Hi,
From: Gregory Etelson <getelson at nvidia.com>
Sent: Sunday, February 9, 2025 3:48 PM
To: dev at dpdk.org
Cc: Gregory Etelson; Maayan Kashani; Raslan Darawsheh; Itamar Gozlan
Subject: [PATCH] net/mlx5/hws: change error flow on matcher disconnect
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>
Patch applied to next-net-mlx,
Kindest regards,
Raslan Darawsheh
More information about the dev
mailing list