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 8241045C16; Wed, 30 Oct 2024 16:43:11 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D6D7643421; Wed, 30 Oct 2024 16:43:09 +0100 (CET) Received: from luks-14ITL5.cesnet.cz (rt-tmc-kou.liberouter.org [195.113.172.126]) by mails.dpdk.org (Postfix) with ESMTP id E5EE743421 for ; Wed, 30 Oct 2024 16:43:08 +0100 (CET) Received: by luks-14ITL5.cesnet.cz (Postfix, from userid 1000) id C1A1428C3114; Wed, 30 Oct 2024 16:43:08 +0100 (CET) From: Lukas Sismis To: dev@dpdk.org Cc: stephen@networkplumber.org, mb@smartsharesystems.com, anatoly.burakov@intel.com, ian.stokes@intel.com, Lukas Sismis Subject: [PATCH v3 1/2] net/ixgbe: increase the maximum of RX/TX descriptors Date: Wed, 30 Oct 2024 16:42:55 +0100 Message-Id: <20241030154256.379249-2-sismis@cesnet.cz> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241030154256.379249-1-sismis@cesnet.cz> References: <20241029124832.224112-1-sismis@cesnet.cz> <20241030154256.379249-1-sismis@cesnet.cz> MIME-Version: 1.0 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 Intel PMDs are capped by default to only 4096 RX/TX descriptors. This can be limiting for applications requiring a bigger buffer capabilities. By bufferring more packets with RX/TX descriptors, the applications can better handle the processing peaks. Setting ixgbe max descriptors to 8192 as per datasheet: Register name: RDLEN Description: Descriptor Ring Length. This register sets the number of bytes allocated for descriptors in the circular descriptor buffer. It must be 128B aligned (7 LS bit must be set to zero). ** Note: validated Lengths up to 128K (8K descriptors). ** Signed-off-by: Lukas Sismis --- doc/guides/nics/ixgbe.rst | 2 +- drivers/net/ixgbe/ixgbe_ethdev.c | 2 +- drivers/net/ixgbe/ixgbe_rxtx.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/guides/nics/ixgbe.rst b/doc/guides/nics/ixgbe.rst index 14573b542e..c5c6a6c34b 100644 --- a/doc/guides/nics/ixgbe.rst +++ b/doc/guides/nics/ixgbe.rst @@ -76,7 +76,7 @@ Scattered packets are not supported in this mode. If an incoming packet is greater than the maximum acceptable length of one "mbuf" data size (by default, the size is 2 KB), vPMD for RX would be disabled. -By default, IXGBE_MAX_RING_DESC is set to 4096 and RTE_PMD_IXGBE_RX_MAX_BURST is set to 32. +By default, IXGBE_MAX_RING_DESC is set to 8192 and RTE_PMD_IXGBE_RX_MAX_BURST is set to 32. Windows Prerequisites and Pre-conditions ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index 7da2ccf6a8..da9b3d7ca7 100644 --- a/drivers/net/ixgbe/ixgbe_ethdev.c +++ b/drivers/net/ixgbe/ixgbe_ethdev.c @@ -73,7 +73,7 @@ #define IXGBE_MMW_SIZE_DEFAULT 0x4 #define IXGBE_MMW_SIZE_JUMBO_FRAME 0x14 -#define IXGBE_MAX_RING_DESC 4096 /* replicate define from rxtx */ +#define IXGBE_MAX_RING_DESC 8192 /* replicate define from rxtx */ /* * Default values for RX/TX configuration diff --git a/drivers/net/ixgbe/ixgbe_rxtx.h b/drivers/net/ixgbe/ixgbe_rxtx.h index ee89c89929..0550c1da60 100644 --- a/drivers/net/ixgbe/ixgbe_rxtx.h +++ b/drivers/net/ixgbe/ixgbe_rxtx.h @@ -25,7 +25,7 @@ * (num_ring_desc * sizeof(rx/tx descriptor)) % 128 == 0 */ #define IXGBE_MIN_RING_DESC 32 -#define IXGBE_MAX_RING_DESC 4096 +#define IXGBE_MAX_RING_DESC 8192 #define RTE_PMD_IXGBE_TX_MAX_BURST 32 #define RTE_PMD_IXGBE_RX_MAX_BURST 32 -- 2.34.1