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 1E4E041CA8; Wed, 15 Feb 2023 18:14:06 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2F6D642D4D; Wed, 15 Feb 2023 18:13:12 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id A393241141 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=1676481182; x=1708017182; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=owzDBvYCpCo+nNPaxejmC5dXVwxn1OCqYAeIG8Vwr8Y=; b=aaSN05EAYtLv1UCS7xsdzr23DmPCsAUUwiw6/jyGjSc4Fygv5RDCBDoO boiG1T8Onx23Jjmntl4X5p1z7UFogsCSLfN5tHmiVV+fL8sGXxkFN9lj+ HBpWy/yKzwkH2t8YI0jky2E4qTmQsHuw9N3uJhHmXVl0lX+7uojcuqjo3 +1CRbIJ+u2/zDDTfO6gAULvczP7oB0JKxQo15MGvsWqiLQSAsaEq9uOhT IAvVE5fmVMbxV59mJivWpaKH+wH3vDp8/tLxZ2fyP5xAH+W5iHwyT3umJ Uue9DsA+Wenp1p8u4U5k2xny+sKIG3XCZc3AeI3fvJIKz/FotTjoSBbe+ w==; X-IronPort-AV: E=McAfee;i="6500,9779,10622"; a="332789817" X-IronPort-AV: E=Sophos;i="5.97,300,1669104000"; d="scan'208";a="332789817" 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:10:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10622"; a="758489626" X-IronPort-AV: E=Sophos;i="5.97,300,1669104000"; d="scan'208";a="758489626" 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:58 -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 07/16] test/bbdev: test start/stop bbdev API Date: Wed, 15 Feb 2023 09:09:40 -0800 Message-Id: <20230215170949.60569-8-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 Add a call to queue start and queue stop specifically for testing the bbdev API. Signed-off-by: Hernan Vargas --- app/test-bbdev/test_bbdev_perf.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/test-bbdev/test_bbdev_perf.c b/app/test-bbdev/test_bbdev_perf.c index 057fb5ac9e..e4eb71050a 100644 --- a/app/test-bbdev/test_bbdev_perf.c +++ b/app/test-bbdev/test_bbdev_perf.c @@ -890,6 +890,7 @@ add_bbdev_dev(uint8_t dev_id, struct rte_bbdev_info *info, ret = rte_bbdev_queue_configure(ad->dev_id, queue_id, &qconf); } + rte_bbdev_queue_start(ad->dev_id, queue_id); if (ret != 0) { printf("All queues on dev %u allocated: %u\n", dev_id, queue_id); @@ -898,8 +899,8 @@ add_bbdev_dev(uint8_t dev_id, struct rte_bbdev_info *info, ad->queue_ids[queue_id] = queue_id; } TEST_ASSERT(queue_id != 0, - "ERROR Failed to configure any queues on dev %u", - dev_id); + "ERROR Failed to configure any queues on dev %u\n" + "\tthe device may not support or have been configured", dev_id); ad->nb_queues = queue_id; set_avail_op(ad, op_type); @@ -3846,6 +3847,7 @@ throughput_pmd_lcore_ldpc_dec(void *arg) TEST_ASSERT_SUCCESS(ret, "Validation failed!"); } + rte_bbdev_queue_stop(tp->dev_id, queue_id); rte_bbdev_dec_op_free_bulk(ops_enq, num_ops); double tb_len_bits = calc_ldpc_dec_TB_size(ref_op); -- 2.37.1