[PATCH v2 06/16] test/bbdev: report device status in test-bbdev
Hernan Vargas
hernan.vargas at intel.com
Wed Feb 15 18:09:39 CET 2023
No functional impact.
Signed-off-by: Hernan Vargas <hernan.vargas at intel.com>
---
app/test-bbdev/test_bbdev_perf.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/app/test-bbdev/test_bbdev_perf.c b/app/test-bbdev/test_bbdev_perf.c
index 8c4b82efca..057fb5ac9e 100644
--- a/app/test-bbdev/test_bbdev_perf.c
+++ b/app/test-bbdev/test_bbdev_perf.c
@@ -850,6 +850,8 @@ add_bbdev_dev(uint8_t dev_id, struct rte_bbdev_info *info,
#endif
/* Let's refresh this now this is configured */
rte_bbdev_info_get(dev_id, info);
+ if (info->drv.device_status == RTE_BBDEV_DEV_FATAL_ERR)
+ printf("Device Status %s\n", rte_bbdev_device_status_str(info->drv.device_status));
nb_queues = RTE_MIN(rte_lcore_count(), info->drv.max_num_queues);
nb_queues = RTE_MIN(nb_queues, (unsigned int) MAX_QUEUES);
--
2.37.1
More information about the dev
mailing list