patch 'net/i40e/base: fix loop counter width in DCB parsing' has been queued to stable release 24.11.7
luca.boccassi at gmail.com
luca.boccassi at gmail.com
Thu Jun 11 15:20:03 CEST 2026
Hi,
FYI, your patch has been queued to stable release 24.11.7
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 06/13/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/313d2488adc0e40ac0bae56c342380b8b06ca035
Thanks.
Luca Boccassi
---
>From 313d2488adc0e40ac0bae56c342380b8b06ca035 Mon Sep 17 00:00:00 2001
From: Deepthi Kavalur <deepthi.kavalur at intel.com>
Date: Tue, 19 May 2026 14:52:22 +0000
Subject: [PATCH] net/i40e/base: fix loop counter width in DCB parsing
[ upstream commit 0693192a16bc2f4881461f54cf55ae9b8d0fcab5 ]
Loop counters in i40e_parse_cee_app_tlv() and
i40e_add_ieee_app_pri_tlv() are declared as u8 but compared against
numapps which is u32. If numapps exceeds 255 the counter wraps,
truncating the iteration. Widen the counters to u32.
Fixes: 166dceeeeafc ("i40e/base: add parsing for CEE DCBX TLVs")
Fixes: 0d9d27bb8684 ("i40e/base: prepare local LLDP MIB in TLV")
Signed-off-by: Deepthi Kavalur <deepthi.kavalur at intel.com>
Signed-off-by: Ciara Loftus <ciara.loftus at intel.com>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
---
.mailmap | 1 +
drivers/net/i40e/base/i40e_dcb.c | 6 +++---
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/.mailmap b/.mailmap
index 9d87c0f640..60281fbc2a 100644
--- a/.mailmap
+++ b/.mailmap
@@ -357,6 +357,7 @@ Dean Marx <dmarx at iol.unh.edu>
Declan Doherty <declan.doherty at intel.com>
Deepak Khandelwal <deepak.khandelwal at intel.com>
Deepak Kumar Jain <deepak.k.jain at intel.com>
+Deepthi Kavalur <deepthi.kavalur at intel.com>
Deirdre O'Connor <deirdre.o.connor at intel.com>
Dekel Peled <dekelp at nvidia.com> <dekelp at mellanox.com>
Dengdui Huang <huangdengdui at huawei.com>
diff --git a/drivers/net/i40e/base/i40e_dcb.c b/drivers/net/i40e/base/i40e_dcb.c
index 04322ea034..c1d97fabab 100644
--- a/drivers/net/i40e/base/i40e_dcb.c
+++ b/drivers/net/i40e/base/i40e_dcb.c
@@ -364,7 +364,7 @@ static void i40e_parse_cee_app_tlv(struct i40e_cee_feat_tlv *tlv,
{
u16 length, typelength, offset = 0;
struct i40e_cee_app_prio *app;
- u8 i;
+ u32 i;
typelength = I40E_NTOHS(tlv->hdr.typelen);
length = (u16)((typelength & I40E_LLDP_TLV_LEN_MASK) >>
@@ -1169,9 +1169,9 @@ static void i40e_add_ieee_app_pri_tlv(struct i40e_lldp_org_tlv *tlv,
struct i40e_dcbx_config *dcbcfg)
{
u16 typelength, length, offset = 0;
- u8 priority, selector, i = 0;
u8 *buf = tlv->tlvinfo;
- u32 ouisubtype;
+ u32 ouisubtype, i = 0;
+ u8 priority, selector;
/* No APP TLVs then just return */
if (dcbcfg->numapps == 0)
--
2.47.3
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-06-11 14:20:03.472995160 +0100
+++ 0054-net-i40e-base-fix-loop-counter-width-in-DCB-parsing.patch 2026-06-11 14:20:01.258747052 +0100
@@ -1 +1 @@
-From 0693192a16bc2f4881461f54cf55ae9b8d0fcab5 Mon Sep 17 00:00:00 2001
+From 313d2488adc0e40ac0bae56c342380b8b06ca035 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 0693192a16bc2f4881461f54cf55ae9b8d0fcab5 ]
+
@@ -13 +14,0 @@
-Cc: stable at dpdk.org
@@ -19,2 +20,2 @@
- .mailmap | 1 +
- drivers/net/intel/i40e/base/i40e_dcb.c | 6 +++---
+ .mailmap | 1 +
+ drivers/net/i40e/base/i40e_dcb.c | 6 +++---
@@ -24 +25 @@
-index 1ef52121dd..3a326db70d 100644
+index 9d87c0f640..60281fbc2a 100644
@@ -27 +28 @@
-@@ -371,6 +371,7 @@ Dean Marx <dmarx at iol.unh.edu>
+@@ -357,6 +357,7 @@ Dean Marx <dmarx at iol.unh.edu>
@@ -35 +36 @@
-diff --git a/drivers/net/intel/i40e/base/i40e_dcb.c b/drivers/net/intel/i40e/base/i40e_dcb.c
+diff --git a/drivers/net/i40e/base/i40e_dcb.c b/drivers/net/i40e/base/i40e_dcb.c
@@ -37,2 +38,2 @@
---- a/drivers/net/intel/i40e/base/i40e_dcb.c
-+++ b/drivers/net/intel/i40e/base/i40e_dcb.c
+--- a/drivers/net/i40e/base/i40e_dcb.c
++++ b/drivers/net/i40e/base/i40e_dcb.c
More information about the stable
mailing list