diff --git a/include/spdk/accel.h b/include/spdk/accel.h index f3eeec788..953ec8574 100644 --- a/include/spdk/accel.h +++ b/include/spdk/accel.h @@ -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 */ diff --git a/module/accel/dsa/accel_dsa.c b/module/accel/dsa/accel_dsa.c index 96ce437f7..9e7616fa7 100644 --- a/module/accel/dsa/accel_dsa.c +++ b/module/accel/dsa/accel_dsa.c @@ -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, diff --git a/module/accel/ioat/accel_ioat.c b/module/accel/ioat/accel_ioat.c index 1bdcce012..d1c05a94a 100644 --- a/module/accel/ioat/accel_ioat.c +++ b/module/accel/ioat/accel_ioat.c @@ -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: