net/mlx5e: TC, Move kfree() calls after destroying all resources
authorRoi Dayan <roid@nvidia.com>
Mon, 1 Nov 2021 16:13:02 +0000 (18:13 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 17 Nov 2021 04:31:50 +0000 (20:31 -0800)
commit88d974860412f2ca337086aa25e12b1094d55c6c
tree87a094b84506e17e1b61c53b617b4a904862cea6
parent972fe492e847c7ed9679a4b4aa79f9fe06b9ae7b
net/mlx5e: TC, Move kfree() calls after destroying all resources

When deleting fdb/nic flow rules first release all resources
and then call the kfree() calls instead of sparse them around
the function.

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