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)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 23 Dec 2021 04:38:49 +0000 (20:38 -0800)
commit2820110d945923ab2f4901753e4ccbb2a506fa8e
treecf0a0804cc793f90a95fdcdf73652a8d090097b0
parent19c4aba2d4e23997061fb11aed8a3e41334bfa14
net/mlx5e: Delete forward rule for ct or sample action

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>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c