net/mlx5e: TC, Move main flow attribute cleanup to helper func
authorPaul Blakey <paulb@nvidia.com>
Wed, 25 Jan 2023 09:54:22 +0000 (11:54 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 6 Apr 2023 01:57:31 +0000 (18:57 -0700)
commita830ec485e8368a29e328d08e2eb28750bbc483f
tree71bba5c591f7ede7bea1481155b547ac524e3f9c
parent7195d9a0c8df0ab78c9d7a587809d16b00432426
net/mlx5e: TC, Move main flow attribute cleanup to helper func

Actions that can be setup per flow attribute (so per split rule)
are cleaned up from mlx5_free_flow_attr(), mlx5e_tc_del_fdb_flow(),
and free_flow_post_acts().

Remove the duplication by re-using the helper function for
the main flow attribute and split rules attributes.

Signed-off-by: Paul Blakey <paulb@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c