DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] regexdev: display response flags value
@ 2022-09-01  8:29 Gerry Gribbon
  2022-10-09 13:01 ` Thomas Monjalon
  0 siblings, 1 reply; 2+ messages in thread
From: Gerry Gribbon @ 2022-09-01  8:29 UTC (permalink / raw)
  To: dev; +Cc: jamhunter, ggribbon, Ori Kam

Allows application user to see response flags

Signed-off-by: Gerry Gribbon <ggribbon@nvidia.com>
Acked-by: Ori Kam <orika@nvidia.com>
---
 app/test-regex/main.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/app/test-regex/main.c b/app/test-regex/main.c
index 351c36a879..94b767e380 100644
--- a/app/test-regex/main.c
+++ b/app/test-regex/main.c
@@ -392,6 +392,7 @@ run_regex(void *args)
 	uint16_t qp_id;
 	uint16_t dev_id = 0;
 	uint8_t nb_matches;
+	uint16_t rsp_flags = 0;
 	struct rte_regexdev_match *match;
 	long pos;
 	unsigned long d_ind = 0;
@@ -585,8 +586,9 @@ run_regex(void *args)
 		/* Log results per job. */
 		for (d_ind = 0; d_ind < qp->total_dequeue; d_ind++) {
 			nb_matches = qp->ops[d_ind % actual_jobs]->nb_matches;
-			printf("Job id %"PRIu64" number of matches = %d\n",
-					qp->ops[d_ind]->user_id, nb_matches);
+			rsp_flags = qp->ops[d_ind % actual_jobs]->rsp_flags;
+			printf("Job id %"PRIu64" number of matches = %d, rsp flags = 0x%x\n",
+					qp->ops[d_ind]->user_id, nb_matches, rsp_flags);
 			qp->total_matches += nb_matches;
 			match = qp->ops[d_ind % actual_jobs]->matches;
 			for (i = 0; i < nb_matches; i++) {
-- 
2.25.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] regexdev: display response flags value
  2022-09-01  8:29 [PATCH] regexdev: display response flags value Gerry Gribbon
@ 2022-10-09 13:01 ` Thomas Monjalon
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Monjalon @ 2022-10-09 13:01 UTC (permalink / raw)
  To: Gerry Gribbon; +Cc: dev, jamhunter, Ori Kam

01/09/2022 10:29, Gerry Gribbon:
> Allows application user to see response flags
> 
> Signed-off-by: Gerry Gribbon <ggribbon@nvidia.com>
> Acked-by: Ori Kam <orika@nvidia.com>

Applied, thanks.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-10-09 13:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-01  8:29 [PATCH] regexdev: display response flags value Gerry Gribbon
2022-10-09 13:01 ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).