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 1231E423FE; Tue, 17 Jan 2023 17:50:59 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1B38542D48; Tue, 17 Jan 2023 17:50:31 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 7AB72400D4 for ; Tue, 17 Jan 2023 17:50:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673974226; x=1705510226; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Ivk0vMTHHtmZ+DjEy2Fb3ASH2iz5G7nQ6yxsYMcaLBk=; b=n/FjKgDCPAlze6aFSZVuTELO9v0kbT00cB3DNTm7+HpX4K2u+2wTJwNb GtvDOSvT3ooUJN/0qgc7ObDxJyCKapmi8aReyJpXFshYaSRk0j6j7Bl/3 UVOPS5uab6ETv9Wxb2EQa+29HLVO2McEeb7AAnQr1+GXd/EYbpV+X1a4a R6Gll3fNfi95a1UelJyvgOZtuVv+1oyMmykSm3KinZIDEMJ8ar1L2YFZg NXsM3WIX13chPruoOf45HIGZwvu2upugPvekflQ7C1Rzu22qd2dlcGlZM plFuwEi5w1sZg3ZzUJk2KnlJSOdb1s9cqXYxErDZUPnKZCgyckNBrY2gA g==; X-IronPort-AV: E=McAfee;i="6500,9779,10592"; a="326022068" X-IronPort-AV: E=Sophos;i="5.97,224,1669104000"; d="scan'208";a="326022068" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jan 2023 08:50:26 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10592"; a="833235100" X-IronPort-AV: E=Sophos;i="5.97,224,1669104000"; d="scan'208";a="833235100" Received: from unknown (HELO csl-npg-qt0.la.intel.com) ([10.233.181.103]) by orsmga005.jf.intel.com with ESMTP; 17 Jan 2023 08:50:25 -0800 From: Hernan Vargas To: dev@dpdk.org, maxime.coquelin@redhat.com, gakhil@marvell.com, trix@redhat.com Cc: nicolas.chautru@intel.com, qi.z.zhang@intel.com, Hernan Vargas Subject: [PATCH v1 05/13] test/bbdev: report device status in bbdev-test Date: Tue, 17 Jan 2023 08:50:15 -0800 Message-Id: <20230117165023.20567-6-hernan.vargas@intel.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230117165023.20567-1-hernan.vargas@intel.com> References: <20230117165023.20567-1-hernan.vargas@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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 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); -- 2.37.1