]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/mlx5e: TC, Fix post_act to not match on in_port metadata
authorMaor Dickman <maord@nvidia.com>
Mon, 18 Jul 2022 06:44:13 +0000 (09:44 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:41:13 +0000 (14:41 +0200)
commit0ab434d2ab5ad4099fd97e0dea7515233a91b598
treeee636f0da5a86c57263ecefa85b6e5fbf8d5d9d4
parent2ba8a12aafdd17effbc7bb5549367b9125d29748
net/mlx5e: TC, Fix post_act to not match on in_port metadata

[ Upstream commit 903f2194f74bbd289f3170114035d472a36a8ab4 ]

The cited commit changed CT to use multi table actions post act infrastructure instead
of using it own post act infrastructure, this broke decap during VF tunnel offload
(Stack devices) with CT due to wrong match on in_port metadata in the post act table.
This changed only broke VF tunnel offload because it modify the packet in_port metadata
to be VF metadata and it isn't propagate the post act creation.

Fixed by modify post act rules to match only on fte_id and not match on in_port metadata
which isn't needed.

Fixes: a81283263bb0 ("net/mlx5e: Use multi table support for CT and sample actions")
Signed-off-by: Maor Dickman <maord@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/post_act.c