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 8D64C457C0; Wed, 14 Aug 2024 12:51:26 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A20EB42DB0; Wed, 14 Aug 2024 12:50:39 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by mails.dpdk.org (Postfix) with ESMTP id 1A18042DAC for ; Wed, 14 Aug 2024 12:50:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1723632636; x=1755168636; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=4F7P8MVvHuwsYOw/Y3ImLTDM/WvCATRhf1OIGc8gilo=; b=cUaTO0XaqL0Gga4LZYA4rZHLfU5M12Rzl8DVaRa5jhn/N9pl1Fr/q8Hk tqwEDDH2D9ONr3X7Uq1P2P4pUVBbM7oL4r2DGCB6DwmcXpsmlbqIUSkmx KBeCOX/6Qzq5ZHID+DciKyrn3IWA+y3dg4Cceb0qVHtPgZOH72NEvHKPS w8YL0eiZtuOmYISpvzx2jaLER5wB8FwsE+cmVV5XP1H/anqHNpIxWqyJS xMu/gVyH3tK+nGhRZ+kN8PqJdhF6PFQty6aiecnJZmHxKZrzyurcipfpb 3QfQ5vVssD4HCcWSJzt/Hm8jcjB0NQP08OcO7VQytWUgu1P+Vi5oVGpJ/ Q==; X-CSE-ConnectionGUID: nX/icBSvR9epqWwKaPThSg== X-CSE-MsgGUID: UOAfauxTQ/iZoxTCANexEg== X-IronPort-AV: E=McAfee;i="6700,10204,11163"; a="44360321" X-IronPort-AV: E=Sophos;i="6.09,145,1716274800"; d="scan'208";a="44360321" 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:36 -0700 X-CSE-ConnectionGUID: Zt0uyX4FSq2tYHWkcNXxdg== X-CSE-MsgGUID: +nXIuTsXTomQDLag9r/euw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,145,1716274800"; d="scan'208";a="96481737" Received: from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.25]) by orviesa001.jf.intel.com with ESMTP; 14 Aug 2024 03:50:35 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: ferruh.yigit@amd.com, thomas@monjalon.net, mb@smartsharesystems.com, Bruce Richardson Subject: [PATCH v3 13/26] net/hns3: use separate Rx and Tx queue limits Date: Wed, 14 Aug 2024 11:49:19 +0100 Message-ID: <20240814104933.14062-14-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 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 Acked-by: Morten Brørup --- 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