Loading
accel/mlx5: Fix deinit process
The crypto_ctx pointer is checked in accel_mlx5_deinit to unregister IO device, but due to an error during ctx init, crypto_ctx might be not NULL but IO device might be not registered. To fix it, add a flag which indicates that module was successfully initialized. Also, fix accel_mlx5_free_resources to correctly release partially constructed ctx Signed-off-by:Alexey Marchuk <alexeymar@nvidia.com> Change-Id: Ieb9cffc98ef237c12b8c4d25354cbe7ad2907528 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/23110 Reviewed-by:
Ben Walker <ben@nvidia.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Shuhei Matsumoto <smatsumoto@nvidia.com> Community-CI: Mellanox Build Bot