* [PATCH] net/mlx5/hws: allow vport action to wire in RX flow
@ 2024-11-19 14:29 Itamar Gozlan
2024-11-26 8:06 ` Raslan Darawsheh
0 siblings, 1 reply; 2+ messages in thread
From: Itamar Gozlan @ 2024-11-19 14:29 UTC (permalink / raw)
To: igozlan, erezsh, thomas, suanmingm, Dariusz Sosnowski,
Viacheslav Ovsiienko, Bing Zhao, Ori Kam, Matan Azrad
Cc: dev
From: Erez Shitrit <erezsh@nvidia.com>
Now that the FW should allow it we can go to a wire interface under the
assumption it is a north directed wire.
Signed-off-by: Erez Shitrit <erezsh@nvidia.com>
Acked-by: Dariusz Sosnowski <dsosnowski@nvidia.com>
---
drivers/net/mlx5/hws/mlx5dr_action.c | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/drivers/net/mlx5/hws/mlx5dr_action.c b/drivers/net/mlx5/hws/mlx5dr_action.c
index 696b160011..b038ca6879 100644
--- a/drivers/net/mlx5/hws/mlx5dr_action.c
+++ b/drivers/net/mlx5/hws/mlx5dr_action.c
@@ -817,13 +817,8 @@ mlx5dr_action_fixup_stc_attr(struct mlx5dr_context *ctx,
if (stc_attr->vport.vport_num != WIRE_PORT)
break;
- if (fw_tbl_type == FS_FT_FDB_RX) {
- /* The FW doesn't allow to go back to wire in RX, so change it to DROP */
- fixup_stc_attr->action_type = MLX5_IFC_STC_ACTION_TYPE_DROP;
- fixup_stc_attr->action_offset = MLX5DR_ACTION_OFFSET_HIT;
- fixup_stc_attr->stc_offset = stc_attr->stc_offset;
- } else if (fw_tbl_type == FS_FT_FDB_TX) {
- /*The FW doesn't allow to go to wire in the TX by JUMP_TO_VPORT*/
+ if (fw_tbl_type == FS_FT_FDB_TX || fw_tbl_type == FS_FT_FDB_RX) {
+ /*The FW doesn't allow to go to wire in the TX/RX by JUMP_TO_VPORT*/
fixup_stc_attr->action_type = MLX5_IFC_STC_ACTION_TYPE_JUMP_TO_UPLINK;
fixup_stc_attr->action_offset = stc_attr->action_offset;
fixup_stc_attr->stc_offset = stc_attr->stc_offset;
--
2.39.3
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] net/mlx5/hws: allow vport action to wire in RX flow
2024-11-19 14:29 [PATCH] net/mlx5/hws: allow vport action to wire in RX flow Itamar Gozlan
@ 2024-11-26 8:06 ` Raslan Darawsheh
0 siblings, 0 replies; 2+ messages in thread
From: Raslan Darawsheh @ 2024-11-26 8:06 UTC (permalink / raw)
To: Itamar Gozlan, Erez Shitrit,
NBU-Contact-Thomas Monjalon (EXTERNAL),
Suanming Mou, Dariusz Sosnowski, Slava Ovsiienko, Bing Zhao,
Ori Kam, Matan Azrad
Cc: dev
Hi,
From: Itamar Gozlan <igozlan@nvidia.com>
Sent: Tuesday, November 19, 2024 4:29 PM
To: Itamar Gozlan; Erez Shitrit; NBU-Contact-Thomas Monjalon (EXTERNAL); Suanming Mou; Dariusz Sosnowski; Slava Ovsiienko; Bing Zhao; Ori Kam; Matan Azrad
Cc: dev@dpdk.org
Subject: [PATCH] net/mlx5/hws: allow vport action to wire in RX flow
From: Erez Shitrit <erezsh@nvidia.com>
Now that the FW should allow it we can go to a wire interface under the
assumption it is a north directed wire.
Signed-off-by: Erez Shitrit <erezsh@nvidia.com>
Acked-by: Dariusz Sosnowski <dsosnowski@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:[~2024-11-26 8:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-19 14:29 [PATCH] net/mlx5/hws: allow vport action to wire in RX flow Itamar Gozlan
2024-11-26 8:06 ` 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).