[Accel-config] [PATCH v1] accel-config/test: Fix bug of setting max destination size
Li Zhang <li4.zhang at intel.com> Tue, 14 Jun 2022 15:12:28 +0800
| Newsgroups | dev.linux.lists.accel-config |
|---|---|
| Message-ID | <[email protected]> |
--===============7314636098559478060== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable It's incorrect to use a fixed size for setting the max destination size, replace it with setting wq_max_xfer_size to the max destination size in descriptor register. Signed-off-by: Li Zhang <li4.zhang(a)intel.com> --- test/iaa.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/iaa.c b/test/iaa.c index 7cc11c7..ad6c521 100644 --- a/test/iaa.c +++ b/test/iaa.c @@ -567,7 +567,7 @@ int iaa_compress_multi_task_nodes(struct acctest_contex= t *ctx) = tsk_node->tsk->iaa_compr_flags =3D (IDXD_COMPRESS_FLAG_EOB_BFINAL | IDXD_COMPRESS_FLAG_FLUSH_OUTPUT); - tsk_node->tsk->iaa_max_dst_size =3D IAA_COMPRESS_MAX_DEST_SIZE; + tsk_node->tsk->iaa_max_dst_size =3D ctx->wq_max_xfer_size; = iaa_prep_compress(tsk_node->tsk); tsk_node =3D tsk_node->next; @@ -625,7 +625,7 @@ int iaa_decompress_multi_task_nodes(struct acctest_cont= ext *ctx) = tsk_node->tsk->iaa_compr_flags =3D (IDXD_COMPRESS_FLAG_EOB_BFINAL | IDXD_COMPRESS_FLAG_FLUSH_OUTPUT); - tsk_node->tsk->iaa_max_dst_size =3D IAA_DECOMPRESS_MAX_DEST_SIZE; + tsk_node->tsk->iaa_max_dst_size =3D ctx->wq_max_xfer_size; = iaa_prep_compress(tsk_node->tsk); tsk_node =3D tsk_node->next; @@ -676,7 +676,7 @@ int iaa_decompress_multi_task_nodes(struct acctest_cont= ext *ctx) IDXD_DECOMPRESS_FLAG_STOP_ON_EOB | IDXD_DECOMPRESS_FLAG_FLUSH_OUTPUT | IDXD_DECOMPRESS_FLAG_EN_DECOMPRESS); - tsk_node->tsk->iaa_max_dst_size =3D IAA_DECOMPRESS_MAX_DEST_SIZE; + tsk_node->tsk->iaa_max_dst_size =3D ctx->wq_max_xfer_size; = iaa_prep_decompress(tsk_node->tsk); tsk_node =3D tsk_node->next; -- = 2.25.1 --===============7314636098559478060==--