]> 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)
commitc8c8f9b66c680d6f07629c9d780436d78920da49
treeb048756e570ff636141417ada522cc0165e270c0
parentaa58a00bfbbeabd15ab910daf194a09cb78d4cad
net/mlx5e: Set decap action based on attr for sample

[ Upstream commit 9d3a38b2577be3032530ba5cfe5b2a2d2fd401b5 ]

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: 686c43a3e11e ("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