[PATCH] net/mlx5: fix indirect action template error handling

Raslan Darawsheh rasland at nvidia.com
Mon May 27 13:39:35 CEST 2024


Hi,

From: Maayan Kashani <mkashani at nvidia.com>
Sent: Sunday, May 26, 2024 4:22 PM
To: dev at dpdk.org
Cc: Maayan Kashani; Suanming Mou; Raslan Darawsheh; stable at dpdk.org; Dariusz Sosnowski; Slava Ovsiienko; Ori Kam; Matan Azrad
Subject: [PATCH] net/mlx5: fix indirect action template error handling

For indirect action type, on  error case the function jumped to err
but returned zero cause rte_errno was not initialized before the jump.
It caused no error in table creation.

In case reaching an error, if rte_errno is not initialized,
it will be set to EINVAL.
Now table creation should fail if the translate of the action fails.
Added driver log warnings so it can be easy to track failure on shared
actions translate.

Fixes: 7ab3962d2d2b ("net/mlx5: add indirect HW steering action")
Cc: stable at dpdk.org
Signed-off-by: Maayan Kashani <mkashani at nvidia.com>
Acked-by: Suanming Mou <suanmingm at nvidia.com>

Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh


More information about the dev mailing list