lib/accel: removed references to ACCEL_FLAG_PERSISTENT

- Removed ACCEL_FLAG_PERSISTENT and related code

Change-Id: Icc8890ad7143fab4bd4b544e82acdf9b84c0a1eb
Signed-off-by: Marcin Spiewak <marcin.spiewak@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16951
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
Marcin Spiewak 2023-02-24 09:39:58 +00:00 committed by Tomasz Zawadzki
parent 27d5b38523
commit 2903189c40
3 changed files with 0 additions and 24 deletions

View File

@ -21,9 +21,6 @@ extern "C" {
/** Data Encryption Key identifier */
struct spdk_accel_crypto_key;
/* Flags for accel operations */
#define ACCEL_FLAG_PERSISTENT (1 << 0)
struct spdk_accel_crypto_key_create_param {
char *cipher; /**< Cipher to be used for crypto operations */
char *hex_key; /**< Hexlified key */

View File

@ -150,18 +150,10 @@ _process_single_task(struct spdk_io_channel *ch, struct spdk_accel_task *task)
switch (task->op_code) {
case ACCEL_OPC_COPY:
if (task->flags & ACCEL_FLAG_PERSISTENT) {
flags |= SPDK_IDXD_FLAG_PERSISTENT;
flags |= SPDK_IDXD_FLAG_NONTEMPORAL;
}
rc = spdk_idxd_submit_copy(chan->chan, task->d.iovs, task->d.iovcnt,
task->s.iovs, task->s.iovcnt, flags, dsa_done, idxd_task);
break;
case ACCEL_OPC_DUALCAST:
if (task->flags & ACCEL_FLAG_PERSISTENT) {
flags |= SPDK_IDXD_FLAG_PERSISTENT;
flags |= SPDK_IDXD_FLAG_NONTEMPORAL;
}
rc = idxd_submit_dualcast(chan, idxd_task, flags);
break;
case ACCEL_OPC_COMPARE:
@ -170,10 +162,6 @@ _process_single_task(struct spdk_io_channel *ch, struct spdk_accel_task *task)
dsa_done, idxd_task);
break;
case ACCEL_OPC_FILL:
if (task->flags & ACCEL_FLAG_PERSISTENT) {
flags |= SPDK_IDXD_FLAG_PERSISTENT;
flags |= SPDK_IDXD_FLAG_NONTEMPORAL;
}
rc = spdk_idxd_submit_fill(chan->chan, task->d.iovs, task->d.iovcnt,
task->fill_pattern, flags, dsa_done, idxd_task);
break;
@ -182,10 +170,6 @@ _process_single_task(struct spdk_io_channel *ch, struct spdk_accel_task *task)
task->crc_dst, flags, dsa_done, idxd_task);
break;
case ACCEL_OPC_COPY_CRC32C:
if (task->flags & ACCEL_FLAG_PERSISTENT) {
flags |= SPDK_IDXD_FLAG_PERSISTENT;
flags |= SPDK_IDXD_FLAG_NONTEMPORAL;
}
rc = spdk_idxd_submit_copy_crc32c(chan->chan, task->d.iovs, task->d.iovcnt,
task->s.iovs, task->s.iovcnt,
task->seed, task->crc_dst, flags,

View File

@ -164,11 +164,6 @@ ioat_submit_tasks(struct spdk_io_channel *ch, struct spdk_accel_task *accel_task
struct spdk_accel_task *tmp;
int rc = 0;
if (accel_task->flags == ACCEL_FLAG_PERSISTENT) {
SPDK_ERRLOG("IOAT does not support durable destinations.\n");
return -EINVAL;
}
do {
switch (accel_task->op_code) {
case ACCEL_OPC_FILL: