patch 'net/bnxt/tf_ulp: fix meter burst size' has been queued to stable release 25.11.5
Kevin Traynor
ktraynor at redhat.com
Thu Dec 3 14:00:45 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/02b247d0cce6c0c0dc7304e51ddea17c260de1f1
Thanks.
Kevin
---
>From 02b247d0cce6c0c0dc7304e51ddea17c260de1f1 Mon Sep 17 00:00:00 2001
From: Evgeny Sokolov <evgeny.sokolov at infotecs.ru>
Date: Tue, 15 Sep 2026 09:11:50 +0000
Subject: [PATCH] net/bnxt/tf_ulp: fix meter burst size
[ upstream commit 7464bf1b703bd784f3156db9105269ba8a214b3b ]
Use 1ULL instead of 1 in the left shift operation when
calculating the burst size mantissa.
This avoids undefined behavior when the shift count exceeds
the width of a 32-bit integer.
Fixes: 4993c210ac41 ("net/bnxt: support flow meter action")
Signed-off-by: Evgeny Sokolov <evgeny.sokolov at infotecs.ru>
---
drivers/net/bnxt/tf_ulp/bnxt_ulp_meter.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/bnxt/tf_ulp/bnxt_ulp_meter.c b/drivers/net/bnxt/tf_ulp/bnxt_ulp_meter.c
index 7f6a84e699..88a2f30521 100644
--- a/drivers/net/bnxt/tf_ulp/bnxt_ulp_meter.c
+++ b/drivers/net/bnxt/tf_ulp/bnxt_ulp_meter.c
@@ -156,5 +156,5 @@ bnxt_ulp_flow_mtr_xbs_calc(int64_t xbs, uint16_t *reg)
*
*/
- m = xbs / (1 << (e - 8)) - (1 << 7);
+ m = xbs / (1ULL << (e - 8)) - (1ULL << 7);
*reg = ((m & 0x7F) << 5) | (e & 0x1F);
*reg = rte_cpu_to_be_16(*reg);
--
2.56.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-12-03 12:52:42.665857877 +0000
+++ 0119-net-bnxt-tf_ulp-fix-meter-burst-size.patch 2026-12-03 12:52:39.113188707 +0000
@@ -1 +1 @@
-From 7464bf1b703bd784f3156db9105269ba8a214b3b Mon Sep 17 00:00:00 2001
+From 02b247d0cce6c0c0dc7304e51ddea17c260de1f1 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 7464bf1b703bd784f3156db9105269ba8a214b3b ]
+
@@ -13 +14,0 @@
-Cc: stable at dpdk.org
More information about the stable
mailing list