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 42E00457C0; Wed, 14 Aug 2024 12:50:22 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3241A427E3; Wed, 14 Aug 2024 12:50:22 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by mails.dpdk.org (Postfix) with ESMTP id 5F31E427D2 for ; Wed, 14 Aug 2024 12:50:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1723632620; x=1755168620; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=rnNuCy2j8PSoqBgN6jvgOPdMzNyVlFUBF/71oeNTmOA=; b=hmWCNBPUtU2o5ezu6Wyi8O6gf1Lf6KVIX1DedtkyOKbv3sv2QDuhUcCr CnCIHtGb9E+7fLv6QkKFtyNTuEiE9iikaGPjmL+JEZTlw7DDEXIic34d9 XAwfLQydLv0B8xssxOw809krcMiHDIp8LE/DKyENZbQK0x5F+9R1Wa6E0 WXzJ8dqQy9LXGLhcz8xr+y7a95bJZLj//ZjhTUCpek3RWn4h2lZ0gs7O8 pIr/JfLW6meSEQqgQg8srRcpf2pS4Jiz7JRWdbfMQ1MqRxZxdb/RfuSbi PrM7c7mafr+X9OsdJuz0M+0Jz3sh+J8LlEyFRU9ERvkBfxbAkpNg9ecXO w==; X-CSE-ConnectionGUID: XbomhQcCSxSQbFAkYT3xmg== X-CSE-MsgGUID: IEOVsXyES7e0P3aGBuwY0g== X-IronPort-AV: E=McAfee;i="6700,10204,11163"; a="44360249" X-IronPort-AV: E=Sophos;i="6.09,145,1716274800"; d="scan'208";a="44360249" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Aug 2024 03:50:20 -0700 X-CSE-ConnectionGUID: 8hUStLG0SOeoOtjs2ST79A== X-CSE-MsgGUID: rO9DolfWQkau+Gx5kZtM0g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,145,1716274800"; d="scan'208";a="96481647" Received: from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.25]) by orviesa001.jf.intel.com with ESMTP; 14 Aug 2024 03:50:19 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: ferruh.yigit@amd.com, thomas@monjalon.net, mb@smartsharesystems.com, Bruce Richardson Subject: [PATCH v3 03/26] app/test-bbdev: remove use of ethdev queue count value Date: Wed, 14 Aug 2024 11:49:09 +0100 Message-ID: <20240814104933.14062-4-bruce.richardson@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240814104933.14062-1-bruce.richardson@intel.com> References: <20240812132910.162252-1-bruce.richardson@intel.com> <20240814104933.14062-1-bruce.richardson@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 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 Acked-by: Morten Brørup --- 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