accel/dpdk_cryptodev: Fix io_dev unregister
It was found that if system has no crypto devs, we exit earlier from init function and don't register io_device. Later in fini function we may try to unregister invalid io_device Signed-off-by: Alexey Marchuk <alexeymar@nvidia.com> Change-Id: I23ac9674c02d4fe97f01c66928a5ec5a2b39ec47 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16321 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
10dcf2dbd2
commit
6da9878643
@ -1314,7 +1314,9 @@ accel_dpdk_cryptodev_fini_cb(void *io_device)
|
||||
static void
|
||||
accel_dpdk_cryptodev_fini(void *ctx)
|
||||
{
|
||||
if (g_crypto_op_mp) {
|
||||
spdk_io_device_unregister(&g_accel_dpdk_cryptodev_module, accel_dpdk_cryptodev_fini_cb);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user