]> www.infradead.org Git - users/jedix/linux-maple.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)
commita03b6ef0f6dbab7f4e63b6ffa4bb82bbcf59317d
treeb048756e570ff636141417ada522cc0165e270c0
parentad2732630ff6b338c17f24b2b736829f38dec989
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: 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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en/tc/sample.c