accel: Add/update prints so user knows which engine is in use

Signed-off-by: paul luse <paul.e.luse@intel.com>
Change-Id: I046cdd485637a6373083f7a50624aa22abd5d934
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2028
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
paul luse 2020-04-24 14:33:12 -04:00 committed by Tomasz Zawadzki
parent 514be889ca
commit 2d097539dc
3 changed files with 3 additions and 2 deletions

View File

@ -224,6 +224,7 @@ spdk_accel_engine_module_initialize(void)
int
spdk_accel_engine_initialize(void)
{
SPDK_NOTICELOG("Accel engine initialized to use software engine.\n");
spdk_accel_engine_module_initialize();
/*
* We need a unique identifier for the accel engine framework, so use the

View File

@ -487,7 +487,7 @@ accel_engine_idxd_init(void)
}
g_idxd_initialized = true;
SPDK_NOTICELOG("IDXD Acceleration Engine Offload Enabled\n");
SPDK_NOTICELOG("Accel engine updated to use IDXD DSA engine.\n");
spdk_accel_hw_engine_register(&idxd_accel_engine);
spdk_io_device_register(&idxd_accel_engine, idxd_create_cb, idxd_destroy_cb,
sizeof(struct idxd_io_channel), "idxd_accel_engine");

View File

@ -397,7 +397,7 @@ accel_engine_ioat_init(void)
}
g_ioat_initialized = true;
SPDK_INFOLOG(SPDK_LOG_ACCEL_IOAT, "Ioat Acceleration Engine Offload Enabled\n");
SPDK_NOTICELOG("Accel engine updated to use IOAT engine.\n");
spdk_accel_hw_engine_register(&ioat_accel_engine);
spdk_io_device_register(&ioat_accel_engine, ioat_create_cb, ioat_destroy_cb,
sizeof(struct ioat_io_channel), "ioat_accel_engine");