Skip to content

Commit a18e879

Browse files
Eli BritsteinSaeed Mahameed
authored andcommitted
net/mlx5e: Annul encap action ordering requirement
Currently a FW syndrome is emitted if the driver configures a multi-destination FTE where the first destination is a tunneled uplink port and the second destination is a local vPort. Support this scenario by creating a multi-destination FTE using the firmware's extended destination capabilities. Signed-off-by: Eli Britstein <[email protected]> Reviewed-by: Oz Shlomo <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent f493f15 commit a18e879

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ mlx5_eswitch_add_offloaded_rule(struct mlx5_eswitch *esw,
131131
if (attr->dests[j].flags & MLX5_ESW_DEST_ENCAP) {
132132
flow_act.action |= MLX5_FLOW_CONTEXT_ACTION_PACKET_REFORMAT;
133133
flow_act.reformat_id = attr->encap_id;
134+
dest[i].vport.flags |= MLX5_FLOW_DEST_VPORT_REFORMAT_ID;
135+
dest[i].vport.reformat_id = attr->encap_id;
134136
}
135137
i++;
136138
}

0 commit comments

Comments
 (0)