net/mlx5: add ASO connection tracking destroy
authorBing Zhao <bingz@nvidia.com>
Wed, 5 May 2021 12:23:21 +0000 (15:23 +0300)
committerRaslan Darawsheh <rasland@nvidia.com>
Wed, 5 May 2021 12:30:15 +0000 (14:30 +0200)
commitc5a49265fc232ac382d4609b264b57b3d65dbbe3
tree8b059e8a37a70e756079ee6859a0133e43af4286
parentcf756556360da44e8e1e00da4b4adef82b6fa1e8
net/mlx5: add ASO connection tracking destroy

When trying to destroy an ASO connection tracking context, the DR
action created on this context should also be destroyed. Before
inserting the related software object into the management free list,
the reference count should be checked.

Right now, the context object will not be freed to the system and
will be reused directly from the free list.

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