Skip to contentSkip to conversation

net/mlx5: fix checking for send to kernel action

PATCH In review Jiawei Wang 2 participants 2 messages Nov 3, 2023 – Nov 12, 2023 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/mlx5: fix checking for send to kernel action

This patch adds the checking to avoid creating send_to_kernel action on the FDB table if eswitch disabled.

Fixes 033e826f680b ("net/mlx5: fix device checking for send to kernel action")
---
 drivers/net/mlx5/mlx5_flow_hw.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/mlx5/mlx5_flow_hw.c +2 -1
index 7376030da2..22d1e652f2 100644
@@ -7287,7 +7287,8 @@ flow_hw_create_send_to_kernel_actions(struct mlx5_priv *priv __rte_unused)
 	bool is_vf_sf_dev = priv->sh->dev_cap.vf || priv->sh->dev_cap.sf;
 
 	for (i = MLX5DR_TABLE_TYPE_NIC_RX; i < MLX5DR_TABLE_TYPE_MAX; i++) {
-		if (is_vf_sf_dev && MLX5DR_TABLE_TYPE_FDB == i)
+		if ((!priv->sh->config.dv_esw_en || is_vf_sf_dev) &&
+		    MLX5DR_TABLE_TYPE_FDB == i)
 			continue;
 		action_flag = mlx5_hw_act_flag[1][i];
 		priv->hw_send_to_kernel[i] =
Signature · 1 line
2.18.1
#1 lore raw

Hi,

Quoted 9 lines

-----Original Message-----
From: Jiawei(Jonny) Wang <[email protected]>
Sent: Friday, November 3, 2023 5:26 PM
To: Suanming Mou <[email protected]>; Slava Ovsiienko <[email protected]>; Matan Azrad <[email protected]>; Ori Kam <[email protected]>
Cc: [email protected]; Raslan Darawsheh <[email protected]>
Subject: [PATCH] net/mlx5: fix checking for send to kernel action

Quoted 8 lines

This patch adds the checking to avoid creating send_to_kernel action on the FDB table if eswitch disabled.

Fixes 033e826f680b ("net/mlx5: fix device checking for send to kernel

action")

Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh