Skip to contentSkip to conversation

net/mlx5: fix indirect list flow action callback invocation

PATCH In review Gregory Etelson 2 participants 2 messages Oct 28, 2024 – Oct 30, 2024 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/mlx5: fix indirect list flow action callback invocation

Fix indirect action list callback parameter.
The function must be called with a flow action to process - not with actions list.

Fixes e26f50adbf38 ("net/mlx5: support indirect list meter mark action")
---
 drivers/net/mlx5/mlx5_flow_hw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/mlx5/mlx5_flow_hw.c +1 -1
index 5b34154bf1..699fddc445 100644
@@ -3547,7 +3547,7 @@ flow_hw_actions_construct(struct rte_eth_dev *dev,
 				    (int)action->type == act_data->type);
 		switch ((int)act_data->type) {
 		case RTE_FLOW_ACTION_TYPE_INDIRECT_LIST:
-			act_data->indirect_list_cb(dev, act_data, actions,
+			act_data->indirect_list_cb(dev, act_data, action,
 						   &rule_acts[act_data->action_dst]);
 			break;
 		case RTE_FLOW_ACTION_TYPE_INDIRECT:
Signature · 1 line
2.43.0
Acked-by Ori Kam on v1 1/1
#1 lore raw

Hi,

From: Gregory Etelson <[email protected]>
Sent: Monday, October 28, 2024 11:43 AM
To: [email protected]
Cc: Gregory Etelson; Maayan Kashani; Raslan Darawsheh; [email protected]; Ori Kam; Dariusz Sosnowski; Slava Ovsiienko; Bing Zhao; Suanming Mou; Matan Azrad
Subject: [PATCH] net/mlx5: fix indirect list flow action callback invocation

Fix indirect action list callback parameter.
The function must be called with a flow action to process - not with actions list.

Fixes e26f50adbf38 ("net/mlx5: support indirect list meter mark action")

Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh