From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7CD8948B69 for ; Fri, 21 Nov 2025 12:24:29 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7764B402EF; Fri, 21 Nov 2025 12:24:29 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 6EDB4402ED for ; Fri, 21 Nov 2025 12:24:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1763724268; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=IU0MRu9rDJE2kZEyzNui2W86g2G5HzwJIJoauk2BHWQ=; b=JOp3/BbY64P08628pXRQ9Ah4uVZTUaIMEgnSwGtwRZUsEHplSsGWNCaj7LLJ27QoMT7vUY iwrHZeue++iiti47zgsZpG4iJvFJiVGg1y+NAFHADiZrDcViTjuL45Fbl6tDgFZ8OsztnW 04il7RM8IVZKKpFUU+/53UsD2SSBcus= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-266-_L6u7W1WO-uUU0bO2XEWrg-1; Fri, 21 Nov 2025 06:24:26 -0500 X-MC-Unique: _L6u7W1WO-uUU0bO2XEWrg-1 X-Mimecast-MFC-AGG-ID: _L6u7W1WO-uUU0bO2XEWrg_1763724265 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 822601954B0D; Fri, 21 Nov 2025 11:24:25 +0000 (UTC) Received: from rh.redhat.com (unknown [10.42.28.165]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id EC60530044DB; Fri, 21 Nov 2025 11:24:23 +0000 (UTC) From: Kevin Traynor To: Bing Zhao Cc: Dariusz Sosnowski , Wisam Jaddo , dpdk stable Subject: patch 'app/flow-perf: fix rules array length' has been queued to stable release 24.11.4 Date: Fri, 21 Nov 2025 11:21:07 +0000 Message-ID: <20251121112128.485623-83-ktraynor@redhat.com> In-Reply-To: <20251121112128.485623-1-ktraynor@redhat.com> References: <20251121112128.485623-1-ktraynor@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: D9PHotkVTV_3kllOizKuSnlXS_w1_acy442HUnAaQzc_1763724265 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit content-type: text/plain; charset="US-ASCII"; x-default=true X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org 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 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 Reviewed-by: Dariusz Sosnowski Acked-by: Wisam Jaddo --- 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@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)