[Accel-config] [PATCH v3 1/1] accel-config/test: Fix dsa_test reports opposite WQ mode output info

Tony Zhu <tony.zhu at intel.com> Wed, 24 Aug 2022 11:51:00 +0800
Newsgroups dev.linux.lists.accel-config
Message-ID <[email protected]>
--===============2702185646584984757==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable

Current output information to indicate a wq is shared or dedicated is
reversed for dsa_test. Fix and indicate the exact wq mode.

Signed-off-by: Tony Zhu <tony.zhu(a)intel.com>
Reviewed-by: Dave Jiang <dave.jiang(a)intel.com>
---
 test/accel_test.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/accel_test.c b/test/accel_test.c
index e9e96aa..38fc450 100644
--- a/test/accel_test.c
+++ b/test/accel_test.c
@@ -224,9 +224,9 @@ int acctest_alloc(struct acctest_context *ctx, int shar=
ed, int dev_id, int wq_id
 	ctx->max_xfer_bits =3D bsr(ctx->max_xfer_size);
 	ctx->compl_size =3D accfg_device_get_compl_size(dev);
 =

-	info("alloc wq %d shared %d size %d addr %p batch sz %#x xfer sz %#x\n",
-	     ctx->wq_idx, ctx->dedicated, ctx->wq_size, ctx->wq_reg,
-	     ctx->max_batch_size, ctx->max_xfer_size);
+	info("alloc wq %d %s size %d addr %p batch sz %#x xfer sz %#x\n",
+	     ctx->wq_idx, (ctx->dedicated =3D=3D ACCFG_WQ_SHARED) ? "shared" : "d=
edicated",
+	     ctx->wq_size, ctx->wq_reg, ctx->max_batch_size, ctx->max_xfer_size);
 =

 	return 0;
 }
-- =

2.27.0

--===============2702185646584984757==--