crypto/mlx5: fix indirect mkey cleaning
authorMichael Baum <michaelba@nvidia.com>
Mon, 13 Sep 2021 19:16:46 +0000 (22:16 +0300)
committerAkhil Goyal <gakhil@marvell.com>
Tue, 28 Sep 2021 06:43:57 +0000 (08:43 +0200)
commitbe5aa65c26976f03b301f9d47d8f2be220c6e362
tree3442b7dacc86930ff8b4769cbbdccffeb45f6174
parent427ec3346d2902ae8f3c5ad5f39c10fe07a66ffb
crypto/mlx5: fix indirect mkey cleaning

The driver creates an indirect mkey per entry in the queue to manage the
crypto operation using the BSF fields.

The indirect mkeys were never released neither while error occurs in the
creation phase nor when the queue is released.

Clean the indirect mkeys in the above cases.

Fixes: c2a42d19d967 ("crypto/mlx5: add WQE set initialization")
Cc: stable@dpdk.org
Signed-off-by: Michael Baum <michaelba@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/crypto/mlx5/mlx5_crypto.c