Commit b1e2bdca authored by Jacek Kalwas's avatar Jacek Kalwas Committed by Tomasz Zawadzki
Browse files

accel: add err logs on module's ifce returning err



Signed-off-by: default avatarJacek Kalwas <jacek.kalwas@intel.com>
Change-Id: I7d76426cb6b57f5959f01dcaf1f1fa705cd7355c
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/18246


Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarAleksey Marchuk <alexeymar@nvidia.com>
Community-CI: Mellanox Build Bot
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
parent be0ea421
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -2249,7 +2249,9 @@ spdk_accel_crypto_key_create(const struct spdk_accel_crypto_key_create_param *pa
		rc = -EEXIST;
	} else {
		rc = module->crypto_key_init(key);
		if (!rc) {
		if (rc) {
			SPDK_ERRLOG("Module %s failed to initialize crypto key\n", module->name);
		} else {
			TAILQ_INSERT_TAIL(&g_keyring, key, link);
		}
	}
@@ -2374,6 +2376,7 @@ accel_create_channel(void *io_device, void *ctx_buf)
		accel_ch->module_ch[i] = g_modules_opc[i].module->get_io_channel();
		/* This can happen if idxd runs out of channels. */
		if (accel_ch->module_ch[i] == NULL) {
			SPDK_ERRLOG("Module %s failed to get io channel\n", g_modules_opc[i].module->name);
			goto err;
		}
	}