From: Maor Dickman Date: Wed, 8 Feb 2023 09:37:41 +0000 (+0200) Subject: net/mlx5: E-switch, Fix missing set of split_count when forward to ovs internal port X-Git-Tag: baikal/mips/sdk6.1~130 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=955c5bd3c25af0e7418285ce4f496fbf5fab8f2e;p=kernel.git net/mlx5: E-switch, Fix missing set of split_count when forward to ovs internal port [ Upstream commit 0ebeca367eeae6810b16819599687245e059bd00 ] Rules with mirror actions are split to two FTEs when the actions after the mirror action contains pedit, vlan push/pop or ct. Forward to ovs internal port adds implicit header rewrite (pedit) but missing trigger to do split. Fix by setting split_count when forwarding to ovs internal port which will trigger split in mirror rules. Fixes: 2fa4ad35f7b2 ("net/mlx5e: Offload tc rules that redirect to ovs internal port") Signed-off-by: Maor Dickman Reviewed-by: Roi Dayan Signed-off-by: Saeed Mahameed Signed-off-by: Sasha Levin --- diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c b/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c index 53b7d3775e8dc..a71eaa0601149 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_tc.c @@ -4054,6 +4054,7 @@ int mlx5e_set_fwd_to_int_port_actions(struct mlx5e_priv *priv, esw_attr->dest_int_port = dest_int_port; esw_attr->dests[out_index].flags |= MLX5_ESW_DEST_CHAIN_WITH_SRC_PORT_CHANGE; + esw_attr->split_count = out_index; /* Forward to root fdb for matching against the new source vport */ attr->dest_chain = 0;