patch 'net/ice: skip TC validation if hierarchy committed' has been queued to stable release 25.11.5

Kevin Traynor ktraynor at redhat.com
Thu Dec 3 14:00:33 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/bdbd4ebc3e43a33775a08ce7bc97caec1242c785

Thanks.

Kevin

---
>From bdbd4ebc3e43a33775a08ce7bc97caec1242c785 Mon Sep 17 00:00:00 2001
From: Ciara Loftus <ciara.loftus at intel.com>
Date: Mon, 7 Sep 2026 13:07:48 +0000
Subject: [PATCH] net/ice: skip TC validation if hierarchy committed

[ upstream commit e37fa70644fb1b906f575a93d4a83bebab69e21c ]

Currently, ice_tx_queue_start() determines a queue's congestion domain
by scanning vsi->info.tc_mapping[] for a matching traffic class range,
rejecting the queue if no match is found.

The Tx scheduler hierarchies only ever operate on a single traffic
class, TC0, so every queue managed by a committed TM hierarchy always
belongs to domain 0. The tc_mapping[] lookup doesn't account for this,
and queues added after a TM hierarchy is committed can be incorrectly
rejected.

Fix this by skipping the lookup if a hierarchy has been committed, as
the domain is already known to be 0 in that case. Since TM does not
support DCB's multi-TC queue layout, also reject queue start explicitly
if DCB has configured more than one TC while a TM hierarchy is
committed.

Fixes: 02b71e570294 ("net/ice: support DCB")

Signed-off-by: Ciara Loftus <ciara.loftus at intel.com>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
---
 drivers/net/intel/ice/ice_ethdev.c |  4 ++++
 drivers/net/intel/ice/ice_ethdev.h |  2 ++
 drivers/net/intel/ice/ice_rxtx.c   | 31 ++++++++++++++++++------------
 3 files changed, 25 insertions(+), 12 deletions(-)

diff --git a/drivers/net/intel/ice/ice_ethdev.c b/drivers/net/intel/ice/ice_ethdev.c
index eec7cb3b40..8065b1603a 100644
--- a/drivers/net/intel/ice/ice_ethdev.c
+++ b/drivers/net/intel/ice/ice_ethdev.c
@@ -3898,4 +3898,6 @@ ice_dev_configure(struct rte_eth_dev *dev)
 	ad->rx_func_type = ICE_RX_DEFAULT;
 
+	pf->dcb_num_tcs = 1;
+
 	if (dev->data->dev_conf.rxmode.mq_mode & RTE_ETH_MQ_RX_RSS_FLAG)
 		dev->data->dev_conf.rxmode.offloads |= RTE_ETH_RX_OFFLOAD_RSS_HASH;
@@ -3927,4 +3929,6 @@ ice_dev_configure(struct rte_eth_dev *dev)
 			return -EINVAL;
 
+		pf->dcb_num_tcs = nb_tc_used;
+
 		ctxt.info = vsi->info;
 		if (rte_le_to_cpu_16(ctxt.info.mapping_flags) == ICE_AQ_VSI_Q_MAP_NONCONTIG) {
diff --git a/drivers/net/intel/ice/ice_ethdev.h b/drivers/net/intel/ice/ice_ethdev.h
index 72ed65f13b..3e8fa0e766 100644
--- a/drivers/net/intel/ice/ice_ethdev.h
+++ b/drivers/net/intel/ice/ice_ethdev.h
@@ -595,4 +595,6 @@ struct ice_pf {
 	struct ice_tm_conf tm_conf;
 	uint16_t outer_ethertype;
+	/* Number of TCs requested, 1 if DCB not configured */
+	uint8_t dcb_num_tcs;
 	/* lock prevent race condition between lsc interrupt handler
 	 * and link status update during dev_start.
diff --git a/drivers/net/intel/ice/ice_rxtx.c b/drivers/net/intel/ice/ice_rxtx.c
index 6d718a4af2..c413ab7382 100644
--- a/drivers/net/intel/ice/ice_rxtx.c
+++ b/drivers/net/intel/ice/ice_rxtx.c
@@ -841,18 +841,25 @@ ice_tx_queue_start(struct rte_eth_dev *dev, uint16_t tx_queue_id)
 	tx_ctx.tsyn_ena = 1;
 
-	/* Mirror RXQ<->CGD association to TXQ<->CGD */
-	for (int i = 0; i < ICE_MAX_TRAFFIC_CLASS; i++) {
-		q_base = rte_le_to_cpu_16(vsi->info.tc_mapping[i]) & ICE_AQ_VSI_TC_Q_OFFSET_M;
-		q_range = 1 << ((rte_le_to_cpu_16(vsi->info.tc_mapping[i]) &
-			ICE_AQ_VSI_TC_Q_NUM_M) >> ICE_AQ_VSI_TC_Q_NUM_S);
+	if (!pf->tm_conf.committed) {
+		/* Mirror RXQ<->CGD association to TXQ<->CGD */
+		for (int i = 0; i < ICE_MAX_TRAFFIC_CLASS; i++) {
+			q_base = rte_le_to_cpu_16(vsi->info.tc_mapping[i]) &
+							ICE_AQ_VSI_TC_Q_OFFSET_M;
+			q_range = 1 << ((rte_le_to_cpu_16(vsi->info.tc_mapping[i]) &
+				ICE_AQ_VSI_TC_Q_NUM_M) >> ICE_AQ_VSI_TC_Q_NUM_S);
 
-		if (q_base <= tx_queue_id && tx_queue_id < q_base + q_range)
-			break;
+			if (q_base <= tx_queue_id && tx_queue_id < q_base + q_range)
+				break;
 
-		cgd_idx++;
-	}
-
-	if (cgd_idx >= ICE_MAX_TRAFFIC_CLASS) {
-		PMD_DRV_LOG(ERR, "Bad queue mapping configuration");
+			cgd_idx++;
+		}
+		if (cgd_idx >= ICE_MAX_TRAFFIC_CLASS) {
+			PMD_DRV_LOG(ERR, "Bad queue mapping configuration");
+			rte_free(txq_elem);
+			return -EINVAL;
+		}
+	} else if (pf->dcb_num_tcs > 1) {
+		/* TM only manages the TC0 scheduler subtree. */
+		PMD_DRV_LOG(ERR, "TM hierarchy is not supported together with multi-TC DCB");
 		rte_free(txq_elem);
 		return -EINVAL;
-- 
2.56.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-12-03 12:52:42.327030450 +0000
+++ 0107-net-ice-skip-TC-validation-if-hierarchy-committed.patch	2026-12-03 12:52:39.100938631 +0000
@@ -1 +1 @@
-From e37fa70644fb1b906f575a93d4a83bebab69e21c Mon Sep 17 00:00:00 2001
+From bdbd4ebc3e43a33775a08ce7bc97caec1242c785 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit e37fa70644fb1b906f575a93d4a83bebab69e21c ]
+
@@ -23 +24,0 @@
-Cc: stable at dpdk.org
@@ -34 +35 @@
-index 76b8ff0a72..fd148848d3 100644
+index eec7cb3b40..8065b1603a 100644
@@ -37,2 +38,2 @@
-@@ -3964,4 +3964,6 @@ ice_dev_configure(struct rte_eth_dev *dev)
- 	ad->tx_func_type = ICE_TX_DEFAULT;
+@@ -3898,4 +3898,6 @@ ice_dev_configure(struct rte_eth_dev *dev)
+ 	ad->rx_func_type = ICE_RX_DEFAULT;
@@ -44 +45 @@
-@@ -3993,4 +3995,6 @@ ice_dev_configure(struct rte_eth_dev *dev)
+@@ -3927,4 +3929,6 @@ ice_dev_configure(struct rte_eth_dev *dev)
@@ -52 +53 @@
-index 7ee3ea8a70..5914454c7c 100644
+index 72ed65f13b..3e8fa0e766 100644
@@ -55 +56 @@
-@@ -610,4 +610,6 @@ struct ice_pf {
+@@ -595,4 +595,6 @@ struct ice_pf {
@@ -63 +64 @@
-index 3569ffcf82..52d6984214 100644
+index 6d718a4af2..c413ab7382 100644
@@ -66 +67 @@
-@@ -840,18 +840,25 @@ ice_tx_queue_start(struct rte_eth_dev *dev, uint16_t tx_queue_id)
+@@ -841,18 +841,25 @@ ice_tx_queue_start(struct rte_eth_dev *dev, uint16_t tx_queue_id)



More information about the stable mailing list