patch 'app/flow-perf: fix rules array length' has been queued to stable release 24.11.4

Kevin Traynor ktraynor at redhat.com
Fri Nov 21 12:21:07 CET 2025


Hi,

FYI, your patch has been queued to stable release 24.11.4

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/26/25. 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/ecb7bdd857ed4a34402a6cc2ae26c8f18f746300

Thanks.

Kevin

---
>From ecb7bdd857ed4a34402a6cc2ae26c8f18f746300 Mon Sep 17 00:00:00 2001
From: Bing Zhao <bingz at nvidia.com>
Date: Mon, 17 Nov 2025 09:28:58 +0200
Subject: [PATCH] app/flow-perf: fix rules array length

[ upstream commit a0b148048b3d9960788093b3b94c70af8f04136b ]

The array used to save the flow rules pointer was allocated with an
incorrect length. 1 more rule space should be appended but not 1 byte.

Fixes: 070316d01d3e ("app/flow-perf: add multi-core rule insertion and deletion")

Signed-off-by: Bing Zhao <bingz at nvidia.com>
Reviewed-by: Dariusz Sosnowski <dsosnowski at nvidia.com>
Acked-by: Wisam Jaddo <wisamm at nvidia.com>
---
 app/test-flow-perf/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/test-flow-perf/main.c b/app/test-flow-perf/main.c
index 07ddfe0e46..2c2b3ac3a6 100644
--- a/app/test-flow-perf/main.c
+++ b/app/test-flow-perf/main.c
@@ -1405,5 +1405,5 @@ insert_flows(int port_id, uint8_t core_id, uint16_t dst_port_id)
 
 	flows_list = rte_zmalloc("flows_list",
-		(sizeof(struct rte_flow *) * rules_count_per_core) + 1, 0);
+		(sizeof(struct rte_flow *) * (rules_count_per_core + 1)), 0);
 	if (flows_list == NULL)
 		rte_exit(EXIT_FAILURE, "No Memory available!\n");
-- 
2.51.0

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2025-11-21 11:05:12.129442430 +0000
+++ 0083-app-flow-perf-fix-rules-array-length.patch	2025-11-21 11:05:09.566201608 +0000
@@ -1 +1 @@
-From a0b148048b3d9960788093b3b94c70af8f04136b Mon Sep 17 00:00:00 2001
+From ecb7bdd857ed4a34402a6cc2ae26c8f18f746300 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit a0b148048b3d9960788093b3b94c70af8f04136b ]
+
@@ -10 +11,0 @@
-Cc: stable at dpdk.org
@@ -20 +21 @@
-index b2084b93dd..a8876acf1f 100644
+index 07ddfe0e46..2c2b3ac3a6 100644
@@ -23 +24 @@
-@@ -1488,5 +1488,5 @@ insert_flows(int port_id, uint8_t core_id, uint16_t dst_port_id)
+@@ -1405,5 +1405,5 @@ insert_flows(int port_id, uint8_t core_id, uint16_t dst_port_id)



More information about the stable mailing list