patch 'net/iavf: fix bandwidth config of unshaped queues' has been queued to stable release 25.11.5

Kevin Traynor ktraynor at redhat.com
Thu Dec 3 14:03:23 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/2da53a8596431f37c4e70ad8d19551c16b379810

Thanks.

Kevin

---
>From 2da53a8596431f37c4e70ad8d19551c16b379810 Mon Sep 17 00:00:00 2001
From: Dawid Wesierski <dawid.wesierski at intel.com>
Date: Tue, 20 Oct 2026 15:22:11 +0000
Subject: [PATCH] net/iavf: fix bandwidth config of unshaped queues

[ upstream commit d2a76fc571b310fa3a46adc167cdea3cec7248ea ]

When configuring queue bandwidth via virtchnl in iavf_hierarchy_commit(),
an entry in the bandwidth configuration array is allocated for each queue
node. However, the driver only populated queue_id and tc for nodes that
had an active shaper profile.

Because the configuration buffer is zero-initialized with calloc(), any
unshaped queue node left its entry with queue_id 0, tc 0, and zero rate
limits. Consequently, the PF interpreted each unshaped queue entry as a
request to reset queue 0 to default bandwidth, leaving the actual target
queue untouched on the PF. Any previously configured rate limit on that
queue remained active, even across subsequent queue enables or process
restarts.

Fix this by setting queue_id and tc for every queue node, ensuring
unshaped queues properly send zeroed shaper rates for their own queue ID
so the PF restores their default bandwidth.

Fixes: 5779a8894d15 ("net/iavf: support queue rate limit configuration")

Signed-off-by: Dawid Wesierski <dawid.wesierski at intel.com>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
---
 drivers/net/intel/iavf/iavf_tm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/intel/iavf/iavf_tm.c b/drivers/net/intel/iavf/iavf_tm.c
index 86591e2b3c..73e69e8946 100644
--- a/drivers/net/intel/iavf/iavf_tm.c
+++ b/drivers/net/intel/iavf/iavf_tm.c
@@ -862,6 +862,7 @@ static int iavf_hierarchy_commit(struct rte_eth_dev *dev,
 		q_tc_mapping->tc[tm_node->tc].req.queue_count++;
 
+		q_bw->cfg[node_committed].queue_id = tm_node->id;
+		q_bw->cfg[node_committed].tc = tm_node->tc;
 		if (tm_node->shaper_profile) {
-			q_bw->cfg[node_committed].queue_id = node_committed;
 			q_bw->cfg[node_committed].shaper.peak =
 			tm_node->shaper_profile->profile.peak.rate /
@@ -870,5 +871,4 @@ static int iavf_hierarchy_commit(struct rte_eth_dev *dev,
 			tm_node->shaper_profile->profile.committed.rate /
 			1000 * IAVF_BITS_PER_BYTE;
-			q_bw->cfg[node_committed].tc = tm_node->tc;
 		}
 
-- 
2.56.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-12-03 12:52:47.082186527 +0000
+++ 0277-net-iavf-fix-bandwidth-config-of-unshaped-queues.patch	2026-12-03 12:52:39.222938728 +0000
@@ -1 +1 @@
-From d2a76fc571b310fa3a46adc167cdea3cec7248ea Mon Sep 17 00:00:00 2001
+From 2da53a8596431f37c4e70ad8d19551c16b379810 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit d2a76fc571b310fa3a46adc167cdea3cec7248ea ]
+
@@ -24 +25,0 @@
-Cc: stable at dpdk.org
@@ -33 +34 @@
-index 603da09bb5..57075ee5b8 100644
+index 86591e2b3c..73e69e8946 100644
@@ -36 +37 @@
-@@ -868,6 +868,7 @@ static int iavf_hierarchy_commit(struct rte_eth_dev *dev,
+@@ -862,6 +862,7 @@ static int iavf_hierarchy_commit(struct rte_eth_dev *dev,
@@ -42 +43 @@
--			q_bw->cfg[node_committed].queue_id = tm_node->id;
+-			q_bw->cfg[node_committed].queue_id = node_committed;
@@ -45 +46 @@
-@@ -876,5 +877,4 @@ static int iavf_hierarchy_commit(struct rte_eth_dev *dev,
+@@ -870,5 +871,4 @@ static int iavf_hierarchy_commit(struct rte_eth_dev *dev,



More information about the stable mailing list