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 61362457C0; Wed, 14 Aug 2024 12:51:02 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6825C42D97; Wed, 14 Aug 2024 12:50:32 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by mails.dpdk.org (Postfix) with ESMTP id 44C8C42D89 for ; Wed, 14 Aug 2024 12:50:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1723632630; x=1755168630; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=DHKa4ooDrL2yRUQri++6B4gB2Pxb2BN4n/Ie9MBImTU=; b=K0Qr94QBOtcSVIgf1+Qbo/1Gwxnm5YIFL1sU3ExBoTHnWRZVM71q8oZR gas9wYP8buAU9l76Pmp0xtwGFyR86QmcDabiBbQpjDqnGutS4tga4fQgr uXzBdH4p+t8Hi31ZFAEgKFcGwEPooY+U0E98fIDAPWGvObVSRbDxnN1ou BNUc5KtcvTngabXH+9eH4Ha3FYDxQMmKv14oaD3kyweNQPYnb58E/F1IU iTWHh7oRZ8Xg7nlD25y8wl0C/Y0yi3PU/a9gWSdlvYMDZKANOMfq5q0AC QgBKTUYYErE/JH5vcds7Vzoba0f64/Za+CkZhxPyhLulL5DOuNBGwYJbx w==; X-CSE-ConnectionGUID: pKpXHSkeS9uslEmEcalUog== X-CSE-MsgGUID: /287TeCTSCy5hgGzYElKqQ== X-IronPort-AV: E=McAfee;i="6700,10204,11163"; a="44360294" X-IronPort-AV: E=Sophos;i="6.09,145,1716274800"; d="scan'208";a="44360294" 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:30 -0700 X-CSE-ConnectionGUID: //JMEOPMQSqxFgSqsXZ4aw== X-CSE-MsgGUID: 0UaXYhiIQpmn0W/gs56nVg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,145,1716274800"; d="scan'208";a="96481703" Received: from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.25]) by orviesa001.jf.intel.com with ESMTP; 14 Aug 2024 03:50:29 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: ferruh.yigit@amd.com, thomas@monjalon.net, mb@smartsharesystems.com, Bruce Richardson Subject: [PATCH v3 09/26] power: use separate Rx and Tx queue limits Date: Wed, 14 Aug 2024 11:49:15 +0100 Message-ID: <20240814104933.14062-10-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 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 Acked-by: Morten Brørup --- 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