From patchwork Thu Mar 2 20:22:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hernan Vargas X-Patchwork-Id: 124744 X-Patchwork-Delegate: maxime.coquelin@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 78A5341DB8; Thu, 2 Mar 2023 21:22:51 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E79E642D33; Thu, 2 Mar 2023 21:22:06 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 1ED05427F5 for ; Thu, 2 Mar 2023 21:22:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1677788521; x=1709324521; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=IAhyb48OzLWFCbeJTTkE2+becF+pE8cyfdPJWugxQDk=; b=WfHLjos9rLNLkzU0yyK+I+WdDUyWOVgzbfFM+avb1VuwtPvB3mIaqaXa 7L/DPyXdyyrnL3P6kzHPSpWKnrg64OMtWTucz4DsR93cVtKiWQOlNCKZh PndQXwHv6IoKU7ysBGrzQQiewMld+on0Cl2/iD+IN3ic9uLzPxgSHk4yP isbJpcBeV2SzP8GW5tyog7xyEj7u8CyJjrDRlWIvc+EomIKajLkFXn/Fd REe9Q+D32vFcbKkSACUgU7b4I33Bgbv+mbKDBib3RTf7QmooFr8LjHwoK ahRFD9gE650UUJLDoEUEKbqso+zMGo5eP8mjEjtc/CkvtC8hqKaQqXSaL g==; X-IronPort-AV: E=McAfee;i="6500,9779,10637"; a="334871180" X-IronPort-AV: E=Sophos;i="5.98,228,1673942400"; d="scan'208";a="334871180" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Mar 2023 12:22:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10637"; a="705398112" X-IronPort-AV: E=Sophos;i="5.98,228,1673942400"; d="scan'208";a="705398112" Received: from unknown (HELO csl-npg-qt0.la.intel.com) ([10.233.181.103]) by orsmga008.jf.intel.com with ESMTP; 02 Mar 2023 12:21:59 -0800 From: Hernan Vargas To: dev@dpdk.org, gakhil@marvell.com, trix@redhat.com, maxime.coquelin@redhat.com Cc: nicolas.chautru@intel.com, qi.z.zhang@intel.com, Hernan Vargas Subject: [PATCH v3 07/17] test/bbdev: report device status in test-bbdev Date: Thu, 2 Mar 2023 12:22:01 -0800 Message-Id: <20230302202211.170017-8-hernan.vargas@intel.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230302202211.170017-1-hernan.vargas@intel.com> References: <20230302202211.170017-1-hernan.vargas@intel.com> MIME-Version: 1.0 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 Reviewed-by: Maxime Coquelin --- 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 396473961ad1..546fc195aac4 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);