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 94C0846B2A; Tue, 8 Jul 2025 17:41:49 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 30B1140292; Tue, 8 Jul 2025 17:41:49 +0200 (CEST) Received: from dkmailrelay1.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTP id 65C094025E; Tue, 8 Jul 2025 17:41:48 +0200 (CEST) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesys.local [192.168.4.10]) by dkmailrelay1.smartsharesystems.com (Postfix) with ESMTP id 30B40208ED; Tue, 8 Jul 2025 17:41:48 +0200 (CEST) Content-class: urn:content-classes:message MIME-Version: 1.0 Subject: RE: [PATCH v3 09/18] stack: fix unaligned accesses on 128-bit Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Tue, 8 Jul 2025 17:41:46 +0200 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35E9FDA8@smartserver.smartshare.dk> In-Reply-To: <20250708122823.3406288-10-david.marchand@redhat.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH v3 09/18] stack: fix unaligned accesses on 128-bit Thread-Index: AdvwBB1GzlLsFVL9RSC5vr9ax5IeWgAGaAaA References: <20250619071037.37325-1-david.marchand@redhat.com> <20250708122823.3406288-1-david.marchand@redhat.com> <20250708122823.3406288-10-david.marchand@redhat.com> From: =?iso-8859-1?Q?Morten_Br=F8rup?= To: "David Marchand" , Cc: , "Bruce Richardson" , "Gage Eads" , "Olivier Matz" , "Honnappa Nagarahalli" , "Bruce Richardson" X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org > From: David Marchand [mailto:david.marchand@redhat.com] > Sent: Tuesday, 8 July 2025 14.28 >=20 > Fixes: 3340202f5954 ("stack: add lock-free implementation") > Cc: stable@dpdk.org >=20 > Signed-off-by: David Marchand > Acked-by: Bruce Richardson > --- > - struct rte_stack_lf_head old_head; > + alignas(16) struct rte_stack_lf_head old_head; I don't know if Bruce also commented on this one, like he did on patch = 12/18; so at the risk of repeating something already mentioned... If all uses of struct rte_stack_lf_head must be 16-byte aligned, better = fix the root cause by aligning the type rather than every use of it. Please add such a root cause fix to the 25.11 TODO list, like the = alignment of the struct rte_mp_msg type.