]> 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)
commit395f7450218c95841fa47bba8a097b85b8d11ab2
treecf0a0804cc793f90a95fdcdf73652a8d090097b0
parent819dbfb202dbdf6994ade4efe077e6dd0d91f7d9
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: 7c35c51d66ac ("net/mlx5: CT: Add support for mirroring")
Fixes: 4074fbc94d02 ("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