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 C134941CA8; Wed, 15 Feb 2023 18:13:48 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B2D2142D42; Wed, 15 Feb 2023 18:13:09 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 77DF442D12 for ; Wed, 15 Feb 2023 18:13:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1676481181; x=1708017181; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=QxSNs+Hs5/iaDtN++SQxAjolx2E3BU76VpEWh0woYQo=; b=Xi8Woohl2IrreBReLh6jEi4QrAla6JDvqJj4iScnwq0+/ksh35+7t5tR 7JbjyP++tARu+y2Ym/5MweF3WUrJmvAfZ2I/evZOSB1GFGGsg1I5TaWMD AK2AqxwokvQ2pI7EZ5/g7oX7G34YPm8OJu0YjZARm/P/edtifMUrl351+ LuhdQ8Wo+VDXLcrCRkrOpWeCDb52FjYM4zNK33nOBIqs2dx5fSSKhDqeM Slg5Qi9ptxZzhGPf+bdfcHF6H50X0FtKwJw7OuzPejVOTOnEVJjUogvcL rPNnLvy+TZgtFuQ48NPE5dvbxMpUXxnE2MLo1YfmFpR/29KijHqQxcjvt Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10622"; a="332789805" X-IronPort-AV: E=Sophos;i="5.97,300,1669104000"; d="scan'208";a="332789805" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Feb 2023 09:09:59 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10622"; a="758489622" X-IronPort-AV: E=Sophos;i="5.97,300,1669104000"; d="scan'208";a="758489622" Received: from unknown (HELO csl-npg-qt0.la.intel.com) ([10.233.181.103]) by FMSMGA003.fm.intel.com with ESMTP; 15 Feb 2023 09:09:57 -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 v2 06/16] test/bbdev: report device status in test-bbdev Date: Wed, 15 Feb 2023 09:09:39 -0800 Message-Id: <20230215170949.60569-7-hernan.vargas@intel.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230215170949.60569-1-hernan.vargas@intel.com> References: <20230215170949.60569-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 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