[PATCH v1 05/13] test/bbdev: report device status in bbdev-test
Maxime Coquelin
maxime.coquelin at redhat.com
Tue Jan 31 11:05:27 CET 2023
On 1/17/23 17:50, Hernan Vargas wrote:
> 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 12fa988da6..36ea399938 100644
> --- a/app/test-bbdev/test_bbdev_perf.c
> +++ b/app/test-bbdev/test_bbdev_perf.c
> @@ -849,6 +849,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);
>
Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>
Thanks,
Maxime
More information about the dev
mailing list