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 A56B0457BB; Wed, 14 Aug 2024 09:49:01 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B4E86410E7; Wed, 14 Aug 2024 09:48:41 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.16]) by mails.dpdk.org (Postfix) with ESMTP id BEBE640650 for ; Tue, 13 Aug 2024 18:00:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1723564816; x=1755100816; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=eaLBT7YPLflME8DQVeunhmRGBbn/xW704ox7JEU/ono=; b=KpCu+ZJd1CN89ie2VnWrB4uGzeY+ENzO77aO56k2/SCVtbYMTFFari0L pKfzoEPueCAC2chUlwmnP+inoF/LCwGR5tPgbK619JJ/1pHtxP5II+B4b tjmYvktl1NH88FtkEYyEhdnNTTjmR2B01lRt0+hfIuVSOvRJFguyFQCMz ZszOwD6zEs5RXrFHf0rsCmwJfi0fRX4RDDGV6XWuhGcrD60NYIx6S4Tmk Hj8ndkr+P5I8wDkgM7fzXFzxrirVMHsKN4lUiNsVyVsv/KRB+xE7WWwL/ Tr7BbDarrwJAICnQenCGmRejsmCSi+iqgQ5RtVXPyGOU6VFfk4j7JH+QR A==; X-CSE-ConnectionGUID: QFlOlApsSx6e+TF6PWXSRA== X-CSE-MsgGUID: zxQip5TyQQGmtjow91VAnw== X-IronPort-AV: E=McAfee;i="6700,10204,11163"; a="12987801" X-IronPort-AV: E=Sophos;i="6.09,286,1716274800"; d="scan'208";a="12987801" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa110.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Aug 2024 09:00:16 -0700 X-CSE-ConnectionGUID: PzHiGsqbSPa692iyU/MJeA== X-CSE-MsgGUID: 93Vdzl1vQwGKXznh3EhE4w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,286,1716274800"; d="scan'208";a="58406120" Received: from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.25]) by fmviesa007.fm.intel.com with ESMTP; 13 Aug 2024 09:00:14 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: ferruh.yigit@amd.com, thomas@monjalon.net, mb@smartsharesystems.com, Bruce Richardson , Bruce Richardson Subject: [RFC PATCH v2 03/26] app/test-bbdev: remove use of ethdev queue count value Date: Tue, 13 Aug 2024 16:59:40 +0100 Message-ID: <20240813160003.423935-4-bruce.richards@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240813160003.423935-1-bruce.richards@intel.com> References: <20240812132910.162252-1-bruce.richardson@intel.com> <20240813160003.423935-1-bruce.richards@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Wed, 14 Aug 2024 09:48:34 +0200 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 Replace the use of RTE_MAX_QUEUES_PER_PORT, which is intended as an ethdev define, with the limit from the bbdev library. Signed-off-by: Bruce Richardson --- app/test-bbdev/test_bbdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/test-bbdev/test_bbdev.c b/app/test-bbdev/test_bbdev.c index 0bbce6ca92..2e626efd74 100644 --- a/app/test-bbdev/test_bbdev.c +++ b/app/test-bbdev/test_bbdev.c @@ -297,7 +297,7 @@ test_bbdev_configure_stop_queue(void) "Failed test for rte_bbdev_queue_stop " "invalid dev_id "); - TEST_ASSERT_FAIL(rte_bbdev_queue_stop(dev_id, RTE_MAX_QUEUES_PER_PORT), + TEST_ASSERT_FAIL(rte_bbdev_queue_stop(dev_id, RTE_BBDEV_DEFAULT_MAX_NB_QUEUES), "Failed test for rte_bbdev_queue_stop " "invalid queue_id "); @@ -1176,7 +1176,7 @@ test_bbdev_invalid_driver(void) "invalid dev_id "); TEST_ASSERT_FAIL(rte_bbdev_queue_info_get(dev_id, - RTE_MAX_QUEUES_PER_PORT, &qinfo), + RTE_BBDEV_DEFAULT_MAX_NB_QUEUES, &qinfo), "Failed test for rte_bbdev_info_get: " "invalid queue_id "); -- 2.43.0