]> git.itanic.dy.fi Git - linux-stable/commit
net/mlx5e: TC, CT: Offload ct clear only once
authorYevgeny Kliteynik <kliteyn@nvidia.com>
Sun, 4 Jun 2023 09:45:38 +0000 (12:45 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 5 Jul 2023 17:57:04 +0000 (10:57 -0700)
commitf7a485115ad4cfc560833942014bf791abf1f827
tree301fac302ed6a910fa3b46a43d00c9fe54f537e1
parent65e64640e97c0f223e77f9ea69b5a46186b93470
net/mlx5e: TC, CT: Offload ct clear only once

Non-clear CT action causes a flow rule split, while CT clear action
doesn't and is just a header-rewrite to the current flow rule.
But ct offload is done in post_parse and is per ct action instance,
so ct clear offload is parsed multiple times, while its deleted once.

Fix this by post_parsing the ct action only once per flow attribute
(which is per flow rule) by using a offloaded ct_attr flag.

Fixes: 08fe94ec5f77 ("net/mlx5e: TC, Remove special handling of CT action")
Signed-off-by: Paul Blakey <paulb@nvidia.com>
Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c
drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.h