Skip to content

Commit

Permalink
net/mlx5/hws: allow vport action to wire in Rx flow
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Dariusz Sosnowski <[email protected]>
  • Loading branch information
erezshitrit authored and raslandarawsheh committed Nov 25, 2024
1 parent b78d020 commit 5c271f1
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions drivers/net/mlx5/hws/mlx5dr_action.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5c271f1

Please sign in to comment.