diff --git a/include/spdk/idxd.h b/include/spdk/idxd.h index d6c489da2..80120844f 100644 --- a/include/spdk/idxd.h +++ b/include/spdk/idxd.h @@ -352,7 +352,7 @@ int spdk_idxd_batch_prep_crc32c(struct spdk_idxd_io_channel *chan, struct idxd_b * by writing to the proper device portal. * * \param chan IDXD channel to submit request. - * \param dst Resulting calculation. + * \param crc_dst Resulting calculation. * \param src Source virtual address. * \param seed Four byte CRC-32C seed value. * \param nbytes Number of bytes to calculate on. @@ -362,7 +362,7 @@ int spdk_idxd_batch_prep_crc32c(struct spdk_idxd_io_channel *chan, struct idxd_b * * \return 0 on success, negative errno on failure. */ -int spdk_idxd_submit_crc32c(struct spdk_idxd_io_channel *chan, uint32_t *dst, void *src, +int spdk_idxd_submit_crc32c(struct spdk_idxd_io_channel *chan, uint32_t *crc_dst, void *src, uint32_t seed, uint64_t nbytes, spdk_idxd_req_cb cb_fn, void *cb_arg); diff --git a/lib/idxd/idxd.c b/lib/idxd/idxd.c index 787595150..45304eb02 100644 --- a/lib/idxd/idxd.c +++ b/lib/idxd/idxd.c @@ -546,7 +546,7 @@ spdk_idxd_submit_fill(struct spdk_idxd_io_channel *chan, void *dst, uint64_t fil } int -spdk_idxd_submit_crc32c(struct spdk_idxd_io_channel *chan, uint32_t *dst, void *src, +spdk_idxd_submit_crc32c(struct spdk_idxd_io_channel *chan, uint32_t *crc_dst, void *src, uint32_t seed, uint64_t nbytes, spdk_idxd_req_cb cb_fn, void *cb_arg) { @@ -573,7 +573,7 @@ spdk_idxd_submit_crc32c(struct spdk_idxd_io_channel *chan, uint32_t *dst, void * desc->flags &= IDXD_CLEAR_CRC_FLAGS; desc->crc32c.seed = seed; desc->xfer_size = nbytes; - comp->crc_dst = dst; + comp->crc_dst = crc_dst; /* Submit operation. */ movdir64b(chan->portal, desc);