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 3A1EE41DB8; Thu, 2 Mar 2023 21:22:57 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 260EA42D3F; Thu, 2 Mar 2023 21:22:08 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 8D5DC42BD9 for ; Thu, 2 Mar 2023 21:22: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=1677788521; x=1709324521; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Vzx4xDhDZN9pFO0E5XHtfIoHp/pmokabtw71fQzFU7g=; b=H+TRt1wq3JX5zoSeC2aWQ6SxKPdRjpUmueHaWC+KjiR6FQrMhHV7gOKf P58Q3GByoQ2//aJ+/MoOAXj6SULUJ3HxDKA0iY4+sm0KpWN7K47NsqwQ2 lhBIiiHQ7WAKlonSkgtdK/pLdSKheu2wBDJiUcKfWBswxpJX5hDzM9+WX vzX8h6b3wiB2p7VAoNjVriPtZOQbrZvxFYC1zQ5T0Ja1x2AGcm9xgC2+1 72U8Y2rw9IF2pX/Mnhv77Y8/aQ0bbm4Vx1DxDv3oONwUiQrc1yBe1fK5t mlAJ3kfbvgV07TdjlxyD/+fLIudbZ6+7OYpGQYY4R3CUfkio1pPlSiQvI g==; X-IronPort-AV: E=McAfee;i="6500,9779,10637"; a="334871189" X-IronPort-AV: E=Sophos;i="5.98,228,1673942400"; d="scan'208";a="334871189" 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:01 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10637"; a="705398115" X-IronPort-AV: E=Sophos;i="5.98,228,1673942400"; d="scan'208";a="705398115" 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:22:00 -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 08/17] test/bbdev: test start/stop bbdev API Date: Thu, 2 Mar 2023 12:22:02 -0800 Message-Id: <20230302202211.170017-9-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 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 | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/app/test-bbdev/test_bbdev_perf.c b/app/test-bbdev/test_bbdev_perf.c index 546fc195aac4..7bfc4cd5779e 100644 --- a/app/test-bbdev/test_bbdev_perf.c +++ b/app/test-bbdev/test_bbdev_perf.c @@ -886,19 +886,23 @@ add_bbdev_dev(uint8_t dev_id, struct rte_bbdev_info *info, "Allocated all queues (id=%u) at prio%u on dev%u\n", queue_id, qconf.priority, dev_id); qconf.priority++; - ret = rte_bbdev_queue_configure(ad->dev_id, queue_id, - &qconf); + ret = rte_bbdev_queue_configure(ad->dev_id, queue_id, &qconf); } if (ret != 0) { - printf("All queues on dev %u allocated: %u\n", - dev_id, queue_id); + printf("All queues on dev %u allocated: %u\n", dev_id, queue_id); + break; + } + ret = rte_bbdev_queue_start(ad->dev_id, queue_id); + if (ret != 0) { + printf("Failed to start queue on dev %u q_id: %u\n", dev_id, queue_id); break; } 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 the related operation capability\n" + "\tor the device may not have been configured yet", dev_id); ad->nb_queues = queue_id; set_avail_op(ad, op_type); @@ -3844,6 +3848,9 @@ throughput_pmd_lcore_ldpc_dec(void *arg) TEST_ASSERT_SUCCESS(ret, "Validation failed!"); } + ret = rte_bbdev_queue_stop(tp->dev_id, queue_id); + if (ret != 0) + printf("Failed to stop queue on dev %u q_id: %u\n", 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