DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] net/mlx5: fix checking for send to kernel action
@ 2023-11-03 15:25 Jiawei Wang
  2023-11-12  7:55 ` Raslan Darawsheh
  0 siblings, 1 reply; 2+ messages in thread
From: Jiawei Wang @ 2023-11-03 15:25 UTC (permalink / raw)
  To: suanmingm, viacheslavo, Matan Azrad, Ori Kam; +Cc: dev, rasland

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 <jiaweiw@nvidia.com>
Acked-by: Suanming Mou <suanmingm@nvidia.com>
---
 drivers/net/mlx5/mlx5_flow_hw.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/mlx5/mlx5_flow_hw.c b/drivers/net/mlx5/mlx5_flow_hw.c
index 7376030da2..22d1e652f2 100644
--- a/drivers/net/mlx5/mlx5_flow_hw.c
+++ b/drivers/net/mlx5/mlx5_flow_hw.c
@@ -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] =
-- 
2.18.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: [PATCH] net/mlx5: fix checking for send to kernel action
  2023-11-03 15:25 [PATCH] net/mlx5: fix checking for send to kernel action Jiawei Wang
@ 2023-11-12  7:55 ` Raslan Darawsheh
  0 siblings, 0 replies; 2+ messages in thread
From: Raslan Darawsheh @ 2023-11-12  7:55 UTC (permalink / raw)
  To: Jiawei(Jonny) Wang, Suanming Mou, Slava Ovsiienko, Matan Azrad, Ori Kam
  Cc: dev

Hi,

> -----Original Message-----
> From: Jiawei(Jonny) Wang <jiaweiw@nvidia.com>
> Sent: Friday, November 3, 2023 5:26 PM
> To: Suanming Mou <suanmingm@nvidia.com>; Slava Ovsiienko
> <viacheslavo@nvidia.com>; Matan Azrad <matan@nvidia.com>; Ori Kam
> <orika@nvidia.com>
> Cc: dev@dpdk.org; Raslan Darawsheh <rasland@nvidia.com>
> Subject: [PATCH] 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 <jiaweiw@nvidia.com>
> Acked-by: Suanming Mou <suanmingm@nvidia.com>

Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-11-12  7:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-03 15:25 [PATCH] net/mlx5: fix checking for send to kernel action Jiawei Wang
2023-11-12  7:55 ` Raslan Darawsheh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).