net/mlx5: fix checking for send to kernel action
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")
Signed-off-by Jiawei Wang <[email protected]>
Acked-by Suanming Mou <[email protected]>
--- drivers/net/mlx5/mlx5_flow_hw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/mlx5/mlx5_flow_hw.c +2 -1
@@ -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
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_kernelaction on the FDB table if eswitch disabled.Fixes 033e826f680b ("net/mlx5: fix device checking for send to kernelaction")
Signed-off-by Jiawei Wang <[email protected]>Acked-by Suanming Mou <[email protected]>
Patch applied to next-net-mlx,
Kindest regards,
Raslan Darawsheh