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 782894297C; Tue, 18 Apr 2023 13:06:25 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4D90840EDF; Tue, 18 Apr 2023 13:06:25 +0200 (CEST) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTP id 1E41D40698 for ; Tue, 18 Apr 2023 13:06:24 +0200 (CEST) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: [PATCH] eventdev: fix alignment padding Date: Tue, 18 Apr 2023 13:06:22 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35D8788C@smartserver.smartshare.dk> In-Reply-To: <20230418104547.547084-1-sivaprasad.tummala@amd.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH] eventdev: fix alignment padding Thread-Index: Adlx4wX1BOVXPh+URVSy/V5Vd7WXqAAAdkTw References: <20230418104547.547084-1-sivaprasad.tummala@amd.com> From: =?iso-8859-1?Q?Morten_Br=F8rup?= To: "Sivaprasad Tummala" , Cc: , 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: Sivaprasad Tummala [mailto:sivaprasad.tummala@amd.com] > Sent: Tuesday, 18 April 2023 12.46 >=20 > fixed the padding required to align to cacheline size. >=20 > Fixes: 54f17843a887 ("eventdev: add port maintenance API") > Cc: mattias.ronnblom@ericsson.com >=20 > Signed-off-by: Sivaprasad Tummala > --- > lib/eventdev/rte_eventdev_core.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/lib/eventdev/rte_eventdev_core.h > b/lib/eventdev/rte_eventdev_core.h > index c328bdbc82..c27a52ccc0 100644 > --- a/lib/eventdev/rte_eventdev_core.h > +++ b/lib/eventdev/rte_eventdev_core.h > @@ -65,7 +65,7 @@ struct rte_event_fp_ops { > /**< PMD Tx adapter enqueue same destination function. */ > event_crypto_adapter_enqueue_t ca_enqueue; > /**< PMD Crypto adapter enqueue function. */ > - uintptr_t reserved[6]; > + uintptr_t reserved[5]; > } __rte_cache_aligned; This fix changes the size (reduces it by one cache line) of the elements = in the public rte_event_fp_ops array, and thus breaks the ABI. BTW, the patch it fixes, which was dated November 2021, also broke the = ABI. >=20 > extern struct rte_event_fp_ops rte_event_fp_ops[RTE_EVENT_MAX_DEVS]; > -- > 2.34.1