Commit f6ad6170 authored by paul luse's avatar paul luse Committed by Tomasz Zawadzki
Browse files

module/idxd: add support for copy + crc to idxd engine module



Upcoming patches will add support for accel_perf tool.  Also
following will come vectored support and batch versions.

Signed-off-by: default avatarpaul luse <paul.e.luse@intel.com>
Change-Id: I43bd11b8efe40e6df0e2c8bd2995b9a9341f6457
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8142


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: default avatarZiye Yang <ziye.yang@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: default avatarAleksey Marchuk <alexeymar@mellanox.com>
parent be8f5a39
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -127,6 +127,10 @@ _process_single_task(struct spdk_io_channel *ch, struct spdk_accel_task *task)
		rc = spdk_idxd_submit_crc32c(chan->chan, task->dst, src, task->seed, task->nbytes, idxd_done,
					     task);
		break;
	case ACCEL_OPCODE_COPY_CRC32C:
		rc = spdk_idxd_submit_copy_crc32c(chan->chan, task->dst, task->src, task->crc_dst, task->seed,
						  task->nbytes, idxd_done, task);
		break;
	default:
		assert(false);
		rc = -EINVAL;
@@ -219,7 +223,7 @@ static uint64_t
idxd_get_capabilities(void)
{
	return ACCEL_COPY | ACCEL_FILL | ACCEL_CRC32C | ACCEL_COMPARE |
	       ACCEL_DUALCAST;
	       ACCEL_DUALCAST | ACCEL_COPY_CRC32C;
}

static uint32_t