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 37F9846211 for ; Thu, 13 Feb 2025 10:59:57 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5EC3242EBE; Thu, 13 Feb 2025 10:59:56 +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 DC89240287 for ; Thu, 13 Feb 2025 10:59:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1739440794; 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=JuUqwOf2Led5ME0BMVtjw/RjGA4WAMf1LpTODDtbnEw=; b=UcC+mbCqafvgAq8StkqyCLvFHztUr9CDFnzrtdMj2gISSEC6wu82Il29faZcJLXTiDfpaM bYls4q2Wm+ZpKyEgXpymBpVDBk6uvOn0eMpwRxK6JeyQ4Ws9pEsvHAN9qojaIhBcFwxHkn ucKlzcMECta35h3t6n2VQdECNS8IZxk= 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-92-p9s4UUFqOieHPBG2Bw3EaA-1; Thu, 13 Feb 2025 04:59:51 -0500 X-MC-Unique: p9s4UUFqOieHPBG2Bw3EaA-1 X-Mimecast-MFC-AGG-ID: p9s4UUFqOieHPBG2Bw3EaA_1739440790 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (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 66CE519783B4; Thu, 13 Feb 2025 09:59:49 +0000 (UTC) Received: from rh.Home (unknown [10.45.224.21]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id E42131800360; Thu, 13 Feb 2025 09:59:46 +0000 (UTC) From: Kevin Traynor To: Konstantin Ananyev Cc: Phanendra Vukkisala , =?UTF-8?q?Morten=20Br=C3=B8rup?= , Stephen Hemminger , dpdk stable Subject: patch 'test/ring: fix init with custom number of lcores' has been queued to stable release 24.11.2 Date: Thu, 13 Feb 2025 09:57:29 +0000 Message-ID: <20250213095933.362078-2-ktraynor@redhat.com> In-Reply-To: <20250213095933.362078-1-ktraynor@redhat.com> References: <20250213095933.362078-1-ktraynor@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: 2NRVINMqTm2dKO1c-ziUI0IHo_NggghASW6Wg7VTx3I_1739440790 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 02/17/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/bed72526225fe09eb08064290605a6be92825ad5 Thanks. Kevin --- >From bed72526225fe09eb08064290605a6be92825ad5 Mon Sep 17 00:00:00 2001 From: Konstantin Ananyev Date: Fri, 6 Dec 2024 13:35:54 -0500 Subject: [PATCH] test/ring: fix init with custom number of lcores MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [ upstream commit 2cf3a8d35d2db1cee1523e6e9ef5553432fbf56f ] ring_stress_autotest fails to initialize the ring when RTE_MAX_LCORE value is not a number of 2. There is a flaw in calculation required number of elements in the ring. Fix it by aligning number of elements to next power of 2. Fixes: bf28df24e915 ("test/ring: add contention stress test") Reported-by: Phanendra Vukkisala Signed-off-by: Konstantin Ananyev Acked-by: Morten Brørup Acked-by: Stephen Hemminger --- app/test/test_ring_stress_impl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test/test_ring_stress_impl.h b/app/test/test_ring_stress_impl.h index 8b0bfb11fe..ee5274aeef 100644 --- a/app/test/test_ring_stress_impl.h +++ b/app/test/test_ring_stress_impl.h @@ -298,5 +298,5 @@ mt1_init(struct rte_ring **rng, void **data, uint32_t num) /* alloc ring */ - nr = 2 * num; + nr = rte_align32pow2(2 * num); sz = rte_ring_get_memsize(nr); r = rte_zmalloc(NULL, sz, alignof(typeof(*r))); -- 2.48.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2025-02-12 17:29:34.875919482 +0000 +++ 0002-test-ring-fix-init-with-custom-number-of-lcores.patch 2025-02-12 17:29:34.107944480 +0000 @@ -1 +1 @@ -From 2cf3a8d35d2db1cee1523e6e9ef5553432fbf56f Mon Sep 17 00:00:00 2001 +From bed72526225fe09eb08064290605a6be92825ad5 Mon Sep 17 00:00:00 2001 @@ -8,0 +9,2 @@ +[ upstream commit 2cf3a8d35d2db1cee1523e6e9ef5553432fbf56f ] + @@ -15 +16,0 @@ -Cc: stable@dpdk.org