]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit941ef409f21dcf5a7196b465a1235108202f9ed7
treecf0a0804cc793f90a95fdcdf73652a8d090097b0
parentf830461e9bef5f752bb8554f9c652968c0cb7d65
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: 39ec2a52b9d5 ("net/mlx5: CT: Add support for mirroring")
Fixes: e49013bdc733 ("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