Print warnings reported on queues for offload test.
No functional impact.

Signed-off-by: Hernan Vargas <hernan.var...@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coque...@redhat.com>
---
 app/test-bbdev/test_bbdev_perf.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/app/test-bbdev/test_bbdev_perf.c b/app/test-bbdev/test_bbdev_perf.c
index 98d01e8b299a..635c0a5eab48 100644
--- a/app/test-bbdev/test_bbdev_perf.c
+++ b/app/test-bbdev/test_bbdev_perf.c
@@ -5781,6 +5781,9 @@ offload_cost_test(struct active_device *ad,
 
        struct rte_bbdev_stats stats = {0};
        get_bbdev_queue_stats(ad->dev_id, queue_id, &stats);
+       if (stats.enqueue_warn_count > 0)
+               printf("Warning reported on the queue : %10"PRIu64"\n",
+                       stats.enqueue_warn_count);
        if (op_type != RTE_BBDEV_OP_LDPC_DEC) {
                TEST_ASSERT_SUCCESS(stats.enqueued_count != num_to_process,
                                "Mismatch in enqueue count %10"PRIu64" %d",
-- 
2.37.1

Reply via email to