net/mlx5e: Set decap action based on attr for sample
authorChris Mi <cmi@nvidia.com>
Thu, 12 Jan 2023 02:30:27 +0000 (04:30 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 18 Jan 2023 08:01:39 +0000 (00:01 -0800)
commitffa99b534732f90077f346c62094cab3d1ccddce
treec89bdd5e63c743d93d302a7603790248825461ec
parent4ddf77f9bc76092d268bd3af447d60d9cc62b652
net/mlx5e: Set decap action based on attr for sample

Currently decap action is set based on tunnel_id. That means it is
set unconditionally. But for decap, ct and sample actions, decap is
done before ct. No need to decap again in sample.

And the actions are set correctly when parsing. So set decap action
based on attr instead of tunnel_id.

Fixes: 2741f2230905 ("net/mlx5e: TC, Support sample offload action for tunneled traffic")
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/sample.c