patch 'net/bnxt/tf_ulp: fix meter burst size' has been queued to stable release 24.11.9

luca.boccassi at gmail.com luca.boccassi at gmail.com
Tue Oct 27 12:49:52 CET 2026


Hi,

FYI, your patch has been queued to stable release 24.11.9

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 10/29/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/bluca/dpdk-stable

This queued commit can be viewed at:
https://github.com/bluca/dpdk-stable/commit/5d7aabdae0fa412cb915469f112d0be4145ac460

Thanks.

Luca Boccassi

---
>From 5d7aabdae0fa412cb915469f112d0be4145ac460 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 591bde96e80..16d900f847d 100644
--- a/drivers/net/bnxt/tf_ulp/bnxt_ulp_meter.c
+++ b/drivers/net/bnxt/tf_ulp/bnxt_ulp_meter.c
@@ -156,7 +156,7 @@ bnxt_ulp_flow_mtr_xbs_calc(int64_t xbs, uint16_t *reg)
 	 *   = round(xbs*2^(8-e) - 2^7)
 	 *
 	 */
-	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.47.3

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-10-27 11:43:57.506115452 +0000
+++ 0098-net-bnxt-tf_ulp-fix-meter-burst-size.patch	2026-10-27 11:43:53.622062792 +0000
@@ -1 +1 @@
-From 7464bf1b703bd784f3156db9105269ba8a214b3b Mon Sep 17 00:00:00 2001
+From 5d7aabdae0fa412cb915469f112d0be4145ac460 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 7464bf1b703bd784f3156db9105269ba8a214b3b ]
+
@@ -13 +14,0 @@
-Cc: stable at dpdk.org
@@ -21 +22 @@
-index 7f6a84e699..88a2f30521 100644
+index 591bde96e80..16d900f847d 100644
@@ -24 +25 @@
-@@ -155,7 +155,7 @@ bnxt_ulp_flow_mtr_xbs_calc(int64_t xbs, uint16_t *reg)
+@@ -156,7 +156,7 @@ bnxt_ulp_flow_mtr_xbs_calc(int64_t xbs, uint16_t *reg)


More information about the stable mailing list