regex/mlx5: add teardown for fastpath buffers
authorYuval Avnery <yuvalav@mellanox.com>
Wed, 2 Sep 2020 11:38:22 +0000 (11:38 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 8 Sep 2020 22:27:41 +0000 (00:27 +0200)
commit54fa1f6a67d711f38aae61a79b284a84ce80e561
tree0f1ae5106317e866d89a7fb5c7e5b8665930563d
parent781eafc9653806e87f5e5dab88a5d8d5cbc0b1a6
regex/mlx5: add teardown for fastpath buffers

Added missing code to free Input/Output buffers and memory
registration.
Also added calls to this code in case of error in the qp setup
procedure.
The rollback code itself did not handle rollback properly
and did not check return value from the fastpath setup.

Signed-off-by: Yuval Avnery <yuvalav@mellanox.com>
Acked-by: Ori Kam <orika@mellanox.com>
drivers/regex/mlx5/mlx5_regex.h
drivers/regex/mlx5/mlx5_regex_control.c
drivers/regex/mlx5/mlx5_regex_fastpath.c