net/mlx5: release connection tracking management
authorBing Zhao <bingz@nvidia.com>
Wed, 5 May 2021 12:23:19 +0000 (15:23 +0300)
committerRaslan Darawsheh <rasland@nvidia.com>
Wed, 5 May 2021 12:30:13 +0000 (14:30 +0200)
commit0af8a2298a4250018ffa065010bd8c78721a56c7
tree1652a947b895f236318c2d2a89e66896274b5592
parent2db75e8b1d7b38024722b5fa3446090214850687
net/mlx5: release connection tracking management

When freeing the IB shared context during stopping a device, the
ASO connection tracking management structure should also be cleaned
up.

All the DR actions created should be destroyed. The structures need
to be freed and ASO CT QP should be released. In the meanwhile, the
allocated and registered memory region for query should also be
deregistered and then freed.

Signed-off-by: Bing Zhao <bingz@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/net/mlx5/mlx5.c
drivers/net/mlx5/mlx5_flow_aso.c