patch 'bus/dpaa: simplify buffer release loop' has been queued to stable release 25.11.5

Kevin Traynor ktraynor at redhat.com
Thu Dec 3 14:06:20 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/4a02554cce03e2656fe1511f8faf039852ae2fb0

Thanks.

Kevin

---
>From 4a02554cce03e2656fe1511f8faf039852ae2fb0 Mon Sep 17 00:00:00 2001
From: Gagandeep Singh <g.singh at nxp.com>
Date: Mon, 16 Nov 2026 09:36:35 +0530
Subject: [PATCH] bus/dpaa: simplify buffer release loop

[ upstream commit be1da31963eeaa11cf01dfbab971911dd73ffb57 ]

bman_release() computed i = num - 1 before the num == 0 bounds check,
which only exists under RTE_LIBRTE_DPAA_HWDEBUG. With that debug flag
disabled and num == 0, i wraps to UINT32_MAX, and the subsequent
'if (i)' guard is then always taken regardless of num, relying on the
for loop's own bound to do nothing. The indirection added no value and
obscured the num == 0 handling.

Drop the i = num - 1 initializer and the if (i) wrapper, relying
solely on the for (i = 1; i < num; i++) loop condition, matching the
simpler pattern already used in bman_release_fast().

Fixes: f38f61e982f8 ("bus/dpaa: add BMAN hardware interfaces")

Signed-off-by: Gagandeep Singh <g.singh at nxp.com>
---
 drivers/bus/dpaa/base/qbman/bman.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/drivers/bus/dpaa/base/qbman/bman.c b/drivers/bus/dpaa/base/qbman/bman.c
index 6b8dbb8544..050053a372 100644
--- a/drivers/bus/dpaa/base/qbman/bman.c
+++ b/drivers/bus/dpaa/base/qbman/bman.c
@@ -316,5 +316,5 @@ int bman_release(struct bman_pool *pool, const struct bm_buffer *bufs, u8 num,
 	struct bman_portal *p;
 	struct bm_rcr_entry *r;
-	u32 i = num - 1;
+	u32 i;
 	u8 avail;
 
@@ -341,9 +341,7 @@ int bman_release(struct bman_pool *pool, const struct bm_buffer *bufs, u8 num,
 		cpu_to_be64(((u64)pool->params.bpid << 48) |
 			    (bufs[0].opaque & MAX_U48));
-	if (i) {
-		for (i = 1; i < num; i++)
-			r->bufs[i].opaque =
-				cpu_to_be64(bufs[i].opaque & MAX_U48);
-	}
+	for (i = 1; i < num; i++)
+		r->bufs[i].opaque =
+			cpu_to_be64(bufs[i].opaque & MAX_U48);
 
 	bm_rcr_pvb_commit(&p->p, BM_RCR_VERB_CMD_BPID_SINGLE |
-- 
2.56.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-12-03 12:52:52.006179639 +0000
+++ 0454-bus-dpaa-simplify-buffer-release-loop.patch	2026-12-03 12:52:39.341290270 +0000
@@ -1 +1 @@
-From be1da31963eeaa11cf01dfbab971911dd73ffb57 Mon Sep 17 00:00:00 2001
+From 4a02554cce03e2656fe1511f8faf039852ae2fb0 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit be1da31963eeaa11cf01dfbab971911dd73ffb57 ]
+
@@ -18 +19,0 @@
-Cc: stable at dpdk.org
@@ -26 +27 @@
-index 76e612662f..31114b2d57 100644
+index 6b8dbb8544..050053a372 100644
@@ -29 +30 @@
-@@ -305,5 +305,5 @@ int bman_release(struct bman_pool *pool, const struct bm_buffer *bufs, u8 num,
+@@ -316,5 +316,5 @@ int bman_release(struct bman_pool *pool, const struct bm_buffer *bufs, u8 num,
@@ -36 +37 @@
-@@ -330,9 +330,7 @@ int bman_release(struct bman_pool *pool, const struct bm_buffer *bufs, u8 num,
+@@ -341,9 +341,7 @@ int bman_release(struct bman_pool *pool, const struct bm_buffer *bufs, u8 num,



More information about the stable mailing list