patch 'net/ice: fix max number of descriptors for E830' has been queued to stable release 25.11.5

Kevin Traynor ktraynor at redhat.com
Thu Dec 3 14:03:22 CET 2026


Hi,

FYI, your patch has been queued to stable release 25.11.5

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 12/08/26. So please
shout if anyone has objections.

Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.

Queued patches are on a temporary branch at:
https://github.com/kevintraynor/dpdk-stable

This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable/commit/fb622256278f8e4d7c66279bb691be00b63bc4e5

Thanks.

Kevin

---
>From fb622256278f8e4d7c66279bb691be00b63bc4e5 Mon Sep 17 00:00:00 2001
From: Sandeep Penigalapati <sandeep.penigalapati at intel.com>
Date: Mon, 12 Oct 2026 16:12:26 +0000
Subject: [PATCH] net/ice: fix max number of descriptors for E830

[ upstream commit 8053f0c92c572c321431503b8674127da3b99006 ]

E830 supports at most 8096 descriptors per ring, but the advertised
descriptor limits and the Rx/Tx queue setup checks used the generic
maximum of 8160. Only the ring allocation honoured the E830 limit.

An application could therefore request up to 8160 descriptors on E830.
With Tx packet pacing enabled, the Tx time queue length (Tx descriptors
plus a fetch margin) overflows the 13-bit queue length field, wraps to
zero and triggers a Malicious Driver Detection event.

Use ICE_MAX_NUM_DESC_BY_MAC() for the advertised limits and the queue
setup checks so they match the ring allocation.

Fixes: 0b6ff09a1f19 ("net/intel: support Tx packet pacing for E830")

Signed-off-by: Sandeep Penigalapati <sandeep.penigalapati at intel.com>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
---
 drivers/net/intel/ice/ice_ethdev.c | 6 +++---
 drivers/net/intel/ice/ice_rxtx.c   | 4 ++--
 drivers/net/intel/ice/ice_rxtx.h   | 4 ++++
 3 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/drivers/net/intel/ice/ice_ethdev.c b/drivers/net/intel/ice/ice_ethdev.c
index a4bfd6f273..454f1d547f 100644
--- a/drivers/net/intel/ice/ice_ethdev.c
+++ b/drivers/net/intel/ice/ice_ethdev.c
@@ -4631,5 +4631,5 @@ ice_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)
 
 	dev_info->rx_desc_lim = (struct rte_eth_desc_lim) {
-		.nb_max = ICE_MAX_RING_DESC,
+		.nb_max = ICE_MAX_NUM_DESC_BY_MAC(hw),
 		.nb_min = ICE_MIN_RING_DESC,
 		.nb_align = ICE_ALIGN_RING_DESC,
@@ -4637,9 +4637,9 @@ ice_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)
 
 	dev_info->tx_desc_lim = (struct rte_eth_desc_lim) {
-		.nb_max = ICE_MAX_RING_DESC,
+		.nb_max = ICE_MAX_NUM_DESC_BY_MAC(hw),
 		.nb_min = ICE_MIN_RING_DESC,
 		.nb_align = ICE_ALIGN_RING_DESC,
 		.nb_mtu_seg_max = ICE_TX_MTU_SEG_MAX,
-		.nb_seg_max = ICE_MAX_RING_DESC,
+		.nb_seg_max = ICE_MAX_NUM_DESC_BY_MAC(hw),
 	};
 
diff --git a/drivers/net/intel/ice/ice_rxtx.c b/drivers/net/intel/ice/ice_rxtx.c
index bcf6739bda..a0a9112a7c 100644
--- a/drivers/net/intel/ice/ice_rxtx.c
+++ b/drivers/net/intel/ice/ice_rxtx.c
@@ -1300,5 +1300,5 @@ ice_rx_queue_setup(struct rte_eth_dev *dev,
 
 	if (nb_desc % ICE_ALIGN_RING_DESC != 0 ||
-	    nb_desc > ICE_MAX_RING_DESC ||
+	    nb_desc > ICE_MAX_NUM_DESC_BY_MAC(hw) ||
 	    nb_desc < ICE_MIN_RING_DESC) {
 		PMD_INIT_LOG(ERR, "Number (%u) of receive descriptors is "
@@ -1507,5 +1507,5 @@ ice_tx_queue_setup(struct rte_eth_dev *dev,
 
 	if (nb_desc % ICE_ALIGN_RING_DESC != 0 ||
-	    nb_desc > ICE_MAX_RING_DESC ||
+	    nb_desc > ICE_MAX_NUM_DESC_BY_MAC(hw) ||
 	    nb_desc < ICE_MIN_RING_DESC) {
 		PMD_INIT_LOG(ERR, "Number (%u) of transmit descriptors is "
diff --git a/drivers/net/intel/ice/ice_rxtx.h b/drivers/net/intel/ice/ice_rxtx.h
index 31782c6428..2455ee9a67 100644
--- a/drivers/net/intel/ice/ice_rxtx.h
+++ b/drivers/net/intel/ice/ice_rxtx.h
@@ -23,4 +23,8 @@
 #define ICE_ALIGN_RING_DESC  32
 #define ICE_MIN_RING_DESC    64
+/*
+ * E830 needs a lower cap, so use ICE_MAX_NUM_DESC_BY_MAC() for ring
+ * limits rather than ICE_MAX_RING_DESC directly.
+ */
 #define ICE_MAX_RING_DESC    (8192 - 32)
 #define ICE_MAX_RING_DESC_E830	  8096
-- 
2.56.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-12-03 12:52:47.055103214 +0000
+++ 0276-net-ice-fix-max-number-of-descriptors-for-E830.patch	2026-12-03 12:52:39.221938727 +0000
@@ -1 +1 @@
-From 8053f0c92c572c321431503b8674127da3b99006 Mon Sep 17 00:00:00 2001
+From fb622256278f8e4d7c66279bb691be00b63bc4e5 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 8053f0c92c572c321431503b8674127da3b99006 ]
+
@@ -19 +20,0 @@
-Cc: stable at dpdk.org
@@ -30 +31 @@
-index 11b549a452..9939f8d4d8 100644
+index a4bfd6f273..454f1d547f 100644
@@ -33 +34 @@
-@@ -4995,5 +4995,5 @@ ice_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)
+@@ -4631,5 +4631,5 @@ ice_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)
@@ -40 +41 @@
-@@ -5001,9 +5001,9 @@ ice_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)
+@@ -4637,9 +4637,9 @@ ice_dev_info_get(struct rte_eth_dev *dev, struct rte_eth_dev_info *dev_info)
@@ -53 +54 @@
-index 2d3062465f..4016e5f8d4 100644
+index bcf6739bda..a0a9112a7c 100644
@@ -56 +57 @@
-@@ -1298,5 +1298,5 @@ ice_rx_queue_setup(struct rte_eth_dev *dev,
+@@ -1300,5 +1300,5 @@ ice_rx_queue_setup(struct rte_eth_dev *dev,
@@ -63 +64 @@
-@@ -1515,5 +1515,5 @@ ice_tx_queue_setup(struct rte_eth_dev *dev,
+@@ -1507,5 +1507,5 @@ ice_tx_queue_setup(struct rte_eth_dev *dev,
@@ -71 +72 @@
-index e58f1fab37..abbcee9fe0 100644
+index 31782c6428..2455ee9a67 100644



More information about the stable mailing list