From 035326eb9633c344ee61e03fbcdf120a76c54830 Mon Sep 17 00:00:00 2001 From: Lukas Sismis Date: Wed, 30 Oct 2024 16:42:56 +0100 Subject: [PATCH] net/ice: increase max Rx/Tx descriptors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 ice max descriptors to 8192 - 32 as per datasheet maximum. Signed-off-by: Lukas Sismis Acked-by: Morten Brørup Acked-by: Bruce Richardson --- drivers/net/ice/ice_rxtx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ice/ice_rxtx.h b/drivers/net/ice/ice_rxtx.h index f7276cfc9fb..45f25b3609b 100644 --- a/drivers/net/ice/ice_rxtx.h +++ b/drivers/net/ice/ice_rxtx.h @@ -9,7 +9,7 @@ #define ICE_ALIGN_RING_DESC 32 #define ICE_MIN_RING_DESC 64 -#define ICE_MAX_RING_DESC 4096 +#define ICE_MAX_RING_DESC (8192 - 32) #define ICE_DMA_MEM_ALIGN 4096 #define ICE_RING_BASE_ALIGN 128