net/mlx5e: Delete forward rule for ct or sample action
authorChris Mi <cmi@nvidia.com>
Thu, 2 Dec 2021 03:18:02 +0000 (11:18 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Jan 2022 11:42:35 +0000 (12:42 +0100)
commit07f16b17416aaac5f20b1df108155fb97bfd50c5
treed9761af17566349b21c158fd1dde55f7dc68bccf
parentaa584ad8fa2928f1e61e5b3ab3e40ad30e5ed0e3
net/mlx5e: Delete forward rule for ct or sample action

[ Upstream commit 2820110d945923ab2f4901753e4ccbb2a506fa8e ]

When there is ct or sample action, the ct or sample rule will be deleted
and return. But if there is an extra mirror action, the forward rule can't
be deleted because of the return.

Fix it by removing the return.

Fixes: 69e2916ebce4 ("net/mlx5: CT: Add support for mirroring")
Fixes: f94d6389f6a8 ("net/mlx5e: TC, Add support to offload sample action")
Signed-off-by: Chris Mi <cmi@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