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 E70ED457BB; Wed, 14 Aug 2024 09:50:01 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5B5D54278C; Wed, 14 Aug 2024 09:48:56 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.16]) by mails.dpdk.org (Postfix) with ESMTP id 38F634026C for ; Tue, 13 Aug 2024 18:00:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1723564832; x=1755100832; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=12bAsIkudbyK9wJGq4mXNPlj3ZV9l7o0z5BgN0wEq3Q=; b=UFGJ1kgzO005gkMaBLzTbBVTdHpOGwKfT0mqiDS3eaWZXe0iu8jb2gtK Qn5ksS8f+yzBh6APsN4+qk7SBfc5FfLK0hCTd98xx20CK0wIo4DbjD2AK vj/2s1o+6L9rkH7iSoJd4HhJqRrAljYi+10altIozmTIBfxyzEv8QsRm7 Vh4RrrKjcgp4ApeqObXAshO9xm7jWvusgL83Jksy/0piFivPCWXvGi9ej g22PkQTSjnaxCTUZmZWX3Mq3ZkwKSGqM+EGBWzRgPsk0gEqIqgvRMlZ0v 6cXFsSHZC2DSS51VlaSgLpirMoho/Jr4M5V7jfFRgLcj8jPhGDKZ4IE1I w==; X-CSE-ConnectionGUID: +OfykwqCQXusyIRWmeur0g== X-CSE-MsgGUID: z/q099LxS7u8jEb7KmErHQ== X-IronPort-AV: E=McAfee;i="6700,10204,11163"; a="12987851" X-IronPort-AV: E=Sophos;i="6.09,286,1716274800"; d="scan'208";a="12987851" 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:31 -0700 X-CSE-ConnectionGUID: L8Y8n31hTESWXOHYUFGecw== X-CSE-MsgGUID: stQqqbJ3RrGxTi8RO6xYgQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,286,1716274800"; d="scan'208";a="58406406" Received: from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.25]) by fmviesa007.fm.intel.com with ESMTP; 13 Aug 2024 09:00:29 -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 13/26] net/hns3: use separate Rx and Tx queue limits Date: Tue, 13 Aug 2024 16:59:50 +0100 Message-ID: <20240813160003.423935-14-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:35 +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 driver 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 --- drivers/net/hns3/hns3_tm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/hns3/hns3_tm.c b/drivers/net/hns3/hns3_tm.c index 92a668538f..713635afd0 100644 --- a/drivers/net/hns3/hns3_tm.c +++ b/drivers/net/hns3/hns3_tm.c @@ -21,7 +21,7 @@ hns3_tm_max_tx_queues_get(struct rte_eth_dev *dev) memset(&dev_info, 0, sizeof(dev_info)); (void)hns3_dev_infos_get(dev, &dev_info); - return RTE_MIN(dev_info.max_tx_queues, RTE_MAX_QUEUES_PER_PORT); + return RTE_MIN(dev_info.max_tx_queues, RTE_MAX_ETHPORT_TX_QUEUES); } void -- 2.43.0