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 AB1A3457C0; Wed, 14 Aug 2024 12:50:27 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6F586427DE; Wed, 14 Aug 2024 12:50:25 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by mails.dpdk.org (Postfix) with ESMTP id 1484D427DC for ; Wed, 14 Aug 2024 12:50:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1723632623; x=1755168623; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=5Vnm5SiSCHYGCVFdDCBLwbHND/v2Y8Y9N80oH3NoRgs=; b=bqfJvTwUwr6RzKg8F/1+q5WKcPnD7sPdXhL6JalQxziBfFHTAnrk9o49 aUrxNVLliziy0/WkxdaXc6U7BARV47LBmfh8UEmnuG6RzZJ7DNmsd9wah A2nfkPEjFEl7uI3WSJoXRG7Nwm1fxpKiSDr6J1irERtgT9N20Sqt8+K/m pBD5xuy339tTHiRUhx/9acqQABoyXro0OlyzAMblzgrhXNKSigk82vug3 V4hG9LuZeneBh+ZUJ5JdTakVziHpLd7gqDnexSCrUMxAMVSoJvF4VcngO JOiwU1/sjEQWv32+4wyczQPJVewwpylyUJWOxXDtQBd4vD0qvqLwVGccQ Q==; X-CSE-ConnectionGUID: AagTOcyIQeqR28JPoXqMeQ== X-CSE-MsgGUID: 57vhaBt8RcCP/B+LCrvrrg== X-IronPort-AV: E=McAfee;i="6700,10204,11163"; a="44360257" X-IronPort-AV: E=Sophos;i="6.09,145,1716274800"; d="scan'208";a="44360257" 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:22 -0700 X-CSE-ConnectionGUID: 4orn4ngxQXunSEcawBIkLA== X-CSE-MsgGUID: UQF+VhncTXaq89rHlxNl+w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,145,1716274800"; d="scan'208";a="96481659" Received: from unknown (HELO silpixa00401385.ir.intel.com) ([10.237.214.25]) by orviesa001.jf.intel.com with ESMTP; 14 Aug 2024 03:50:22 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: ferruh.yigit@amd.com, thomas@monjalon.net, mb@smartsharesystems.com, Bruce Richardson Subject: [PATCH v3 04/26] config: add separate defines for max Rx and Tx queues Date: Wed, 14 Aug 2024 11:49:10 +0100 Message-ID: <20240814104933.14062-5-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 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 Acked-by: Morten Brørup --- 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