]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Feb 2023 07:34:23 +0000 (08:34 +0100)
commitf7f9d0ce0bdc9ca046f3716ad4c92adf336291f7
treeb048756e570ff636141417ada522cc0165e270c0
parentcf38ccad70247fc4def1db6cca5a6c6448b2f830
net/mlx5e: Set decap action based on attr for sample

[ Upstream commit ffa99b534732f90077f346c62094cab3d1ccddce ]

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: 92c91c57f528 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en/tc/sample.c