]> git.dujemihanovic.xyz Git - linux.git/commitdiff
net/mlx5e: TC, Cleanup ct resources for nic flow
authorChris Mi <cmi@nvidia.com>
Thu, 6 Apr 2023 06:38:09 +0000 (09:38 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 16 Jun 2023 19:59:19 +0000 (12:59 -0700)
The cited commit removes special handling of CT action. But it
removes too much. Pre ct/ct_nat tables and some other resources
are not destroyed due to the cited commit.

Fix it by adding it back.

Fixes: 08fe94ec5f77 ("net/mlx5e: TC, Remove special handling of CT action")
Signed-off-by: Chris Mi <cmi@nvidia.com>
Reviewed-by: Paul Blakey <paulb@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c

index 8a5a8703f0a31b0c4b2feadfb39a5cbcdb1d9196..b9b1da751a3b8c762c69eb27d7991037c5711d04 100644 (file)
@@ -1439,6 +1439,7 @@ static void mlx5e_tc_del_nic_flow(struct mlx5e_priv *priv,
                mlx5e_hairpin_flow_del(priv, flow);
 
        free_flow_post_acts(flow);
+       mlx5_tc_ct_delete_flow(get_ct_priv(flow->priv), attr);
 
        kvfree(attr->parse_attr);
        kfree(flow->attr);