]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Mar 2023 12:33:49 +0000 (13:33 +0100)
commit955c5bd3c25af0e7418285ce4f496fbf5fab8f2e
tree75f6325ae2f5476b7c4f7ce11c31e9573d392d35
parent470b6913c0f103b5c10215a35bb8d0afe0701aa6
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 <maord@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c