From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id BE8C741CF0; Mon, 20 Feb 2023 21:17:10 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5DC8D430E9; Mon, 20 Feb 2023 21:17:10 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 98C7A430E4 for ; Mon, 20 Feb 2023 21:17:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1676924228; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yfiUoWgeXv78rxPzpNwa6lJOCiw9MVLojo2eP2k2o4k=; b=AGZsh52hrBiBRoTSifgLQTe654fn/c86vrtVecwGMG44mYTtFfXPNvjFUZiTqGnIkA1Bdm BP6U7cauQKVmh4ZdKb+JMcYynZBliTCGNuDNUBEaGBosBGTFnxN2ZDg5PQrMgXuGooYoJH tqNVtNSMAvbAMDMZwH2zOm3Q96UjzVo= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-330-Nr1efvgBNHqd9KukNSGk2Q-1; Mon, 20 Feb 2023 15:17:06 -0500 X-MC-Unique: Nr1efvgBNHqd9KukNSGk2Q-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 668B73C025C5; Mon, 20 Feb 2023 20:17:06 +0000 (UTC) Received: from [10.39.208.21] (unknown [10.39.208.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 364F82026D4B; Mon, 20 Feb 2023 20:17:05 +0000 (UTC) Message-ID: Date: Mon, 20 Feb 2023 21:17:03 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH v2 06/16] test/bbdev: report device status in test-bbdev To: Hernan Vargas , dev@dpdk.org, gakhil@marvell.com, trix@redhat.com Cc: nicolas.chautru@intel.com, qi.z.zhang@intel.com References: <20230215170949.60569-1-hernan.vargas@intel.com> <20230215170949.60569-7-hernan.vargas@intel.com> From: Maxime Coquelin In-Reply-To: <20230215170949.60569-7-hernan.vargas@intel.com> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On 2/15/23 18:09, Hernan Vargas wrote: > No functional impact. > > Signed-off-by: Hernan Vargas > --- > 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); > Reviewed-by: Maxime Coquelin Thanks, Maxime