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 82F19457BB; Wed, 14 Aug 2024 09:49:39 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CFE9A410FD; Wed, 14 Aug 2024 09:48:49 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.16]) by mails.dpdk.org (Postfix) with ESMTP id E63F74065B for ; Tue, 13 Aug 2024 18:00:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1723564825; x=1755100825; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=AEdfU9AujAzeRIR76Xc6yzaERVTrXzbFNX6eRhTuL+c=; b=kgfT61mQSGS+R8QZKCw2BYSYigIOXBKcRjRFnbajN8Pv45ve2eLEr7XK gov7+/YPZLKKXUOvdfi1S/CUBSsLwDM4wgUseGEOwGmDJi7T6ZWw3nss3 95GM+30gYdsU8b5zB9uQGwO/u69YMXvDSWEIFuUEPWXZ0lP7S8FLPwdxA sy0agiwxoZBrbiaX0s8WcIYtTt6hfsPO7bWtSLg7xjoOvohzCEA2PWkKS Xj01eFLtEW3JfPfWQK9sAdylNUr4lucttySFchXicwqvcjSFXbV72ILY0 HWpYWH6VjELMiiOev+ld044oCkQs70XvcN1O76FkQgLCR4B+iArzwFaLA w==; X-CSE-ConnectionGUID: mZZkNY+ATTG6M5ePUfe5iQ== X-CSE-MsgGUID: etI6OdagRka2vpJNM7W5Dw== X-IronPort-AV: E=McAfee;i="6700,10204,11163"; a="12987830" X-IronPort-AV: E=Sophos;i="6.09,286,1716274800"; d="scan'208";a="12987830" 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:25 -0700 X-CSE-ConnectionGUID: H1QylbWGQEyPEIoZfDSPZQ== X-CSE-MsgGUID: 3WeWqds0RkWry09zm+Bh5Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,286,1716274800"; d="scan'208";a="58406242" Received: from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.25]) by fmviesa007.fm.intel.com with ESMTP; 13 Aug 2024 09:00:23 -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 09/26] power: use separate Rx and Tx queue limits Date: Tue, 13 Aug 2024 16:59:46 +0100 Message-ID: <20240813160003.423935-10-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 Update library to use the new defines RTE_MAX_ETHPORT_TX_QUEUES and RTE_MAX_ETHPORT_RX_QUEUES rather than the old define RTE_MAX_QUEUES_PER_PORT. Signed-off-by: Bruce Richardson --- lib/power/rte_power_pmd_mgmt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/power/rte_power_pmd_mgmt.c b/lib/power/rte_power_pmd_mgmt.c index b1c18a5f56..7fc87b22c1 100644 --- a/lib/power/rte_power_pmd_mgmt.c +++ b/lib/power/rte_power_pmd_mgmt.c @@ -494,7 +494,7 @@ rte_power_ethdev_pmgmt_queue_enable(unsigned int lcore_id, uint16_t port_id, RTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -EINVAL); - if (queue_id >= RTE_MAX_QUEUES_PER_PORT || lcore_id >= RTE_MAX_LCORE) { + if (queue_id >= RTE_MAX_ETHPORT_RX_QUEUES || lcore_id >= RTE_MAX_LCORE) { ret = -EINVAL; goto end; } @@ -608,7 +608,7 @@ rte_power_ethdev_pmgmt_queue_disable(unsigned int lcore_id, RTE_ETH_VALID_PORTID_OR_ERR_RET(port_id, -EINVAL); - if (lcore_id >= RTE_MAX_LCORE || queue_id >= RTE_MAX_QUEUES_PER_PORT) + if (lcore_id >= RTE_MAX_LCORE || queue_id >= RTE_MAX_ETHPORT_RX_QUEUES) return -EINVAL; /* check if the queue is stopped */ -- 2.43.0