patch 'net/ice/base: fix loop counter type in recipe creation' has been queued to stable release 24.11.9
luca.boccassi at gmail.com
luca.boccassi at gmail.com
Thu Nov 5 17:42:22 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 11/07/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/81c87f58c068fe261efe065d9d828f2f99948e29
Thanks.
Luca Boccassi
---
>From 81c87f58c068fe261efe065d9d828f2f99948e29 Mon Sep 17 00:00:00 2001
From: Deepthi Kavalur <deepthi.kavalur at intel.com>
Date: Thu, 22 Oct 2026 16:51:57 +0000
Subject: [PATCH] net/ice/base: fix loop counter type in recipe creation
[ upstream commit 7db13bceb5e7b835330ac4ea2eaecc9d041873dd ]
The lookup loop in ice_add_adv_recipe() uses a u8 counter, while the
number of lookups is u16. Use a u16 counter, so it cannot wrap around
before reaching the bound.
Fixes: fed0c5ca5f19 ("net/ice/base: support programming a new switch recipe")
Signed-off-by: Deepthi Kavalur <deepthi.kavalur at intel.com>
Signed-off-by: Vladimir Medvedkin <vladimir.medvedkin at intel.com>
Acked-by: Anatoly Burakov <anatoly.burakov at intel.com>
---
drivers/net/ice/base/ice_switch.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ice/base/ice_switch.c b/drivers/net/ice/base/ice_switch.c
index 26861d791ab..4533b6ef15f 100644
--- a/drivers/net/ice/base/ice_switch.c
+++ b/drivers/net/ice/base/ice_switch.c
@@ -8198,7 +8198,7 @@ ice_add_adv_recipe(struct ice_hw *hw, struct ice_adv_lkup_elem *lkups,
struct ice_recp_grp_entry *r_tmp;
struct ice_sw_fv_list_entry *tmp;
struct ice_sw_recipe *rm;
- u8 i;
+ u16 i;
int status = ICE_SUCCESS;
u16 cnt;
--
2.47.3
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-11-05 16:42:47.091322131 +0000
+++ 0055-net-ice-base-fix-loop-counter-type-in-recipe-creatio.patch 2026-11-05 16:42:44.973062340 +0000
@@ -1 +1 @@
-From 7db13bceb5e7b835330ac4ea2eaecc9d041873dd Mon Sep 17 00:00:00 2001
+From 81c87f58c068fe261efe065d9d828f2f99948e29 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 7db13bceb5e7b835330ac4ea2eaecc9d041873dd ]
+
@@ -11 +12,0 @@
-Cc: stable at dpdk.org
@@ -17 +18 @@
- drivers/net/intel/ice/base/ice_switch.c | 2 +-
+ drivers/net/ice/base/ice_switch.c | 2 +-
@@ -20,5 +21,5 @@
-diff --git a/drivers/net/intel/ice/base/ice_switch.c b/drivers/net/intel/ice/base/ice_switch.c
-index 94099c5215..cba3ca05fc 100644
---- a/drivers/net/intel/ice/base/ice_switch.c
-+++ b/drivers/net/intel/ice/base/ice_switch.c
-@@ -8254,7 +8254,7 @@ ice_add_adv_recipe(struct ice_hw *hw, struct ice_adv_lkup_elem *lkups,
+diff --git a/drivers/net/ice/base/ice_switch.c b/drivers/net/ice/base/ice_switch.c
+index 26861d791ab..4533b6ef15f 100644
+--- a/drivers/net/ice/base/ice_switch.c
++++ b/drivers/net/ice/base/ice_switch.c
+@@ -8198,7 +8198,7 @@ ice_add_adv_recipe(struct ice_hw *hw, struct ice_adv_lkup_elem *lkups,
@@ -30,0 +32 @@
+ u16 cnt;
@@ -32 +33,0 @@
- if (!ice_is_prof_rule(rinfo->tun_type) && !lkups_cnt)
More information about the stable
mailing list