From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 41795457BB;
	Wed, 14 Aug 2024 09:49:08 +0200 (CEST)
Received: from mails.dpdk.org (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id 2059C410ED;
	Wed, 14 Aug 2024 09:48:43 +0200 (CEST)
Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.16])
 by mails.dpdk.org (Postfix) with ESMTP id 43B1D4026C
 for <dev@dpdk.org>; Tue, 13 Aug 2024 18:00:17 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple;
 d=intel.com; i=@intel.com; q=dns/txt; s=Intel;
 t=1723564818; x=1755100818;
 h=from:to:cc:subject:date:message-id:in-reply-to:
 references:mime-version:content-transfer-encoding;
 bh=IbyyDSgzCZc/98M6qeRQyBuIHStC65Eo3GEfH4W0/TE=;
 b=XdY7m4W0D5uW0ZIYS52v02poljIPQrszS7HWgbuHJOZFnuVuXt7Eun/g
 WKfK/QPtnGt67oacwPHhjP807WVkg49BYgzqpf8PjbFQfhnrZqrgSuLFU
 sEXyZpgXSThsai4puPIFe5xiP1camQNGKd5qmYb/hPqndVz9DH/BOi2ud
 24x4kZHMwQYY7Joo0cfmIY3VhRyBJIiIfHR3kNgNyr7hMhPKTjaZW1VKG
 azmYWrIfmUtipdZzGep6UenBYhFDQtCpDkkjGPgRRQHDuvzNt3vBDV1KA
 C+d/qXy+QUjq3iOql4SukfpT8DU6sxv9u3zzVbBIGlyinP1SGf2dOIMRj g==;
X-CSE-ConnectionGUID: E+UHGi7URz+cYw7CZXgNyQ==
X-CSE-MsgGUID: EbA6IhhHQ1W6ThFLqBtx/A==
X-IronPort-AV: E=McAfee;i="6700,10204,11163"; a="12987805"
X-IronPort-AV: E=Sophos;i="6.09,286,1716274800"; d="scan'208";a="12987805"
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:17 -0700
X-CSE-ConnectionGUID: b3adrs9vSG+W++7GnnnCGg==
X-CSE-MsgGUID: xltLCo1yQuuRCFZcc9Ywuw==
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="6.09,286,1716274800"; d="scan'208";a="58406136"
Received: from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.25])
 by fmviesa007.fm.intel.com with ESMTP; 13 Aug 2024 09:00:15 -0700
From: Bruce Richardson <bruce.richards@intel.com>
To: dev@dpdk.org
Cc: ferruh.yigit@amd.com, thomas@monjalon.net, mb@smartsharesystems.com,
 Bruce Richardson <bruce.richards@intel.com>,
 Bruce Richardson <bruce.richardson@intel.com>
Subject: [RFC PATCH v2 04/26] config: add separate defines for max Rx and Tx
 queues
Date: Tue, 13 Aug 2024 16:59:41 +0100
Message-ID: <20240813160003.423935-5-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 <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org

Rather than having a single define for maximum queues per ethernet port,
we can set the max values for Rx queues and Tx queue independently. This
allows future memory saving for apps which only need large numbers of Rx
queues or only large numbers of Tx queues.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
---
 config/rte_config.h                    | 2 ++
 doc/guides/rel_notes/release_24_11.rst | 6 ++++++
 2 files changed, 8 insertions(+)

diff --git a/config/rte_config.h b/config/rte_config.h
index d67ff77c71..2c11b4eeec 100644
--- a/config/rte_config.h
+++ b/config/rte_config.h
@@ -65,6 +65,8 @@
 
 /* ether defines */
 #define RTE_MAX_QUEUES_PER_PORT 1024
+#define RTE_MAX_ETHPORT_RX_QUEUES 1024
+#define RTE_MAX_ETHPORT_TX_QUEUES 1024
 #define RTE_ETHDEV_QUEUE_STAT_CNTRS 16 /* max 256 */
 #define RTE_ETHDEV_RXTX_CALLBACKS 1
 #define RTE_MAX_MULTI_HOST_CTRLS 4
diff --git a/doc/guides/rel_notes/release_24_11.rst b/doc/guides/rel_notes/release_24_11.rst
index 0ff70d9057..3725c056ba 100644
--- a/doc/guides/rel_notes/release_24_11.rst
+++ b/doc/guides/rel_notes/release_24_11.rst
@@ -55,6 +55,12 @@ New Features
      Also, make sure to start the actual text at the margin.
      =======================================================
 
+* **New configuration settings for Rx and Tx Ethernet Queues.**
+
+   New defines have been added to DPDK to allow independent tracking of the maximum number of Rx and Tx queues.
+   These defines as ``RTE_MAX_ETHPORT_RX_QUEUES`` and ``RTE_MAX_ETHPORT_TX_QUEUES``,
+   and should be used in place of the older macro ``RTE_MAX_QUEUES_PER_PORT``.
+
 
 Removed Items
 -------------
-- 
2.43.0