Skip to content

Commit fb7be47

Browse files
Chris MiSaeed Mahameed
authored andcommitted
net/mlx5e: TC, Cleanup ct resources for nic flow
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: 08fe94e ("net/mlx5e: TC, Remove special handling of CT action") Signed-off-by: Chris Mi <[email protected]> Reviewed-by: Paul Blakey <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent b100573 commit fb7be47

File tree

1 file changed

+1
-0
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core

1 file changed

+1
-0
lines changed

drivers/net/ethernet/mellanox/mlx5/core/en_tc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1439,6 +1439,7 @@ static void mlx5e_tc_del_nic_flow(struct mlx5e_priv *priv,
14391439
mlx5e_hairpin_flow_del(priv, flow);
14401440

14411441
free_flow_post_acts(flow);
1442+
mlx5_tc_ct_delete_flow(get_ct_priv(flow->priv), attr);
14421443

14431444
kvfree(attr->parse_attr);
14441445
kfree(flow->attr);

0 commit comments

Comments
 (0)