OSDN Git Service

net/mlx5: E-switch, Fix missing set of split_count when forward to ovs internal port
authorMaor Dickman <maord@nvidia.com>
Wed, 8 Feb 2023 09:37:41 +0000 (11:37 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 15 Mar 2023 22:50:16 +0000 (15:50 -0700)
commit28d3815a629cbdee660dd1c9de28d77cb3d77917
tree1ac07e3e4077b8d62daf1c8dcf00a4e165e33b31
parent1313d78ac0c1cfcff7bdece8da54b080e71487c4
net/mlx5: E-switch, Fix missing set of split_count when forward to ovs internal port

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: 27484f7170ed ("net/mlx5e: Offload tc rules that redirect to ovs internal port")
Signed-off-by: Maor Dickman <maord@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c