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:
parent
27d5b38523
commit
2903189c40
@ -21,9 +21,6 @@ extern "C" {
|
|||||||
/** Data Encryption Key identifier */
|
/** Data Encryption Key identifier */
|
||||||
struct spdk_accel_crypto_key;
|
struct spdk_accel_crypto_key;
|
||||||
|
|
||||||
/* Flags for accel operations */
|
|
||||||
#define ACCEL_FLAG_PERSISTENT (1 << 0)
|
|
||||||
|
|
||||||
struct spdk_accel_crypto_key_create_param {
|
struct spdk_accel_crypto_key_create_param {
|
||||||
char *cipher; /**< Cipher to be used for crypto operations */
|
char *cipher; /**< Cipher to be used for crypto operations */
|
||||||
char *hex_key; /**< Hexlified key */
|
char *hex_key; /**< Hexlified key */
|
||||||
|
@ -150,18 +150,10 @@ _process_single_task(struct spdk_io_channel *ch, struct spdk_accel_task *task)
|
|||||||
|
|
||||||
switch (task->op_code) {
|
switch (task->op_code) {
|
||||||
case ACCEL_OPC_COPY:
|
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,
|
rc = spdk_idxd_submit_copy(chan->chan, task->d.iovs, task->d.iovcnt,
|
||||||
task->s.iovs, task->s.iovcnt, flags, dsa_done, idxd_task);
|
task->s.iovs, task->s.iovcnt, flags, dsa_done, idxd_task);
|
||||||
break;
|
break;
|
||||||
case ACCEL_OPC_DUALCAST:
|
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);
|
rc = idxd_submit_dualcast(chan, idxd_task, flags);
|
||||||
break;
|
break;
|
||||||
case ACCEL_OPC_COMPARE:
|
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);
|
dsa_done, idxd_task);
|
||||||
break;
|
break;
|
||||||
case ACCEL_OPC_FILL:
|
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,
|
rc = spdk_idxd_submit_fill(chan->chan, task->d.iovs, task->d.iovcnt,
|
||||||
task->fill_pattern, flags, dsa_done, idxd_task);
|
task->fill_pattern, flags, dsa_done, idxd_task);
|
||||||
break;
|
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);
|
task->crc_dst, flags, dsa_done, idxd_task);
|
||||||
break;
|
break;
|
||||||
case ACCEL_OPC_COPY_CRC32C:
|
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,
|
rc = spdk_idxd_submit_copy_crc32c(chan->chan, task->d.iovs, task->d.iovcnt,
|
||||||
task->s.iovs, task->s.iovcnt,
|
task->s.iovs, task->s.iovcnt,
|
||||||
task->seed, task->crc_dst, flags,
|
task->seed, task->crc_dst, flags,
|
||||||
|
@ -164,11 +164,6 @@ ioat_submit_tasks(struct spdk_io_channel *ch, struct spdk_accel_task *accel_task
|
|||||||
struct spdk_accel_task *tmp;
|
struct spdk_accel_task *tmp;
|
||||||
int rc = 0;
|
int rc = 0;
|
||||||
|
|
||||||
if (accel_task->flags == ACCEL_FLAG_PERSISTENT) {
|
|
||||||
SPDK_ERRLOG("IOAT does not support durable destinations.\n");
|
|
||||||
return -EINVAL;
|
|
||||||
}
|
|
||||||
|
|
||||||
do {
|
do {
|
||||||
switch (accel_task->op_code) {
|
switch (accel_task->op_code) {
|
||||||
case ACCEL_OPC_FILL:
|
case ACCEL_OPC_FILL:
|
||||||
|
Loading…
Reference in New Issue
Block a user