net/mlx5: report error on indirect CT action destroy
authorDmitry Kozlyuk <dkozlyuk@nvidia.com>
Wed, 1 Sep 2021 08:19:57 +0000 (11:19 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 21 Sep 2021 07:56:12 +0000 (09:56 +0200)
commit4ec1f971cd78d3dd63fdd6de23cde6fd322bcca2
tree405130199573a03fdcc0eb88f6cc800eef9d829a
parentdffae63d3c0157eb1c3b7cd4aad4b0048455be60
net/mlx5: report error on indirect CT action destroy

When an indirect CT action of mlx5 PMD could not be destroyed,
rte_action_handle_destroy() was returning (-1), but the error
structure was not filled. This lead to a segfault in testpmd
on an attempt to print it. Fill the details for each possible
cause of this error.

Fixes: c5a49265fc23 ("net/mlx5: add ASO connection tracking destroy")
Cc: stable@dpdk.org
Signed-off-by: Dmitry Kozlyuk <dkozlyuk@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/net/mlx5/mlx5_flow_dv.c