]> git.droids-corp.org - dpdk.git/commit
regex/mlx5: add cleanup on stop
authorOri Kam <orika@nvidia.com>
Fri, 22 Oct 2021 15:45:52 +0000 (15:45 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 3 Nov 2021 22:14:24 +0000 (23:14 +0100)
commitfe37533668f0168186d16fdde50987ea80c748e5
tree03f474137a56197fed6e6d11c6877c15844755aa
parent2044860ebdfab90cd4fd605a684dd68ca1aba279
regex/mlx5: add cleanup on stop

When stopping the device we should release all
data allocated.

After rte_regexdev_configure(), the QPs are pre-allocated,
and will be configured only in rte_regexdev_queue_pair_setup().
That's why the QP jobs array initialization is checked
before attempting to destroy the QP.

Signed-off-by: Ori Kam <orika@nvidia.com>
Signed-off-by: Ady Agbarih <adypodoman@gmail.com>
drivers/regex/mlx5/mlx5_regex.c
drivers/regex/mlx5/mlx5_regex.h
drivers/regex/mlx5/mlx5_regex_control.c
drivers/regex/mlx5/mlx5_regex_fastpath.c
drivers/regex/mlx5/mlx5_rxp.c