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 A0102432F6; Fri, 10 Nov 2023 20:05:16 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 24E2E402EE; Fri, 10 Nov 2023 20:05:16 +0100 (CET) Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by mails.dpdk.org (Postfix) with ESMTP id 07365402EA for ; Fri, 10 Nov 2023 20:05:14 +0100 (CET) Received: from frapeml100005.china.huawei.com (unknown [172.18.147.226]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4SRpC84ymHz6K8sP; Sat, 11 Nov 2023 03:04:04 +0800 (CST) Received: from frapeml500007.china.huawei.com (7.182.85.172) by frapeml100005.china.huawei.com (7.182.85.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Fri, 10 Nov 2023 20:05:10 +0100 Received: from frapeml500007.china.huawei.com ([7.182.85.172]) by frapeml500007.china.huawei.com ([7.182.85.172]) with mapi id 15.01.2507.031; Fri, 10 Nov 2023 20:05:10 +0100 From: Konstantin Ananyev To: =?utf-8?B?TW9ydGVuIEJyw7hydXA=?= , Ruifeng Wang , "honnappa.nagarahalli@arm.com" CC: "dev@dpdk.org" , "david.marchand@redhat.com" , "olivier.matz@6wind.com" , "dharmik.thakkar@arm.com" , "nd@arm.com" , "andrew.rybchenko@oktetlabs.ru" , Gavin Hu Subject: RE: [dpdk-dev] [PATCH] ring: fix unaligned memory access on aarch32 Thread-Topic: [dpdk-dev] [PATCH] ring: fix unaligned memory access on aarch32 Thread-Index: AdX2Nvy5Gi0oTfcnRCSjjFjXwwOPtYgw8JBwAT50woAAAePYAAACTyQgAABPRNAAExNh0A== Date: Fri, 10 Nov 2023 19:05:10 +0000 Message-ID: References: <1583774395-10233-1-git-send-email-phil.yang@arm.com> <98CBD80474FA8B44BF855DF32C47DC35E9EFD1@smartserver.smartshare.dk> <98CBD80474FA8B44BF855DF32C47DC35E9F00F@smartserver.smartshare.dk> <98CBD80474FA8B44BF855DF32C47DC35E9F010@smartserver.smartshare.dk> In-Reply-To: <98CBD80474FA8B44BF855DF32C47DC35E9F010@smartserver.smartshare.dk> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.81.188.82] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected 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 DQo+ID4gRnJvbTogS29uc3RhbnRpbiBBbmFueWV2IFttYWlsdG86a29uc3RhbnRpbi5hbmFueWV2 QGh1YXdlaS5jb21dDQo+ID4gU2VudDogRnJpZGF5LCAxMCBOb3ZlbWJlciAyMDIzIDEwLjQ1DQo+ ID4NCj4gPiA+IEZyb206IE1vcnRlbiBCcsO4cnVwIDxtYkBzbWFydHNoYXJlc3lzdGVtcy5jb20+ DQo+ID4gPiBTZW50OiBGcmlkYXksIE5vdmVtYmVyIDEwLCAyMDIzIDk6MzQgQU0NCj4gPiA+DQo+ ID4gPiArQ0MgR2F2aW4sIHJldmlld2VkIHRoZSB0ZXN0IGNhc2UNCj4gPiA+DQo+ID4gPiA+IEZy b206IFJ1aWZlbmcgV2FuZyBbbWFpbHRvOlJ1aWZlbmcuV2FuZ0Bhcm0uY29tXQ0KPiA+ID4gPiBT ZW50OiBGcmlkYXksIDEwIE5vdmVtYmVyIDIwMjMgMDkuNDANCj4gPiA+ID4NCj4gPiA+ID4gT24g MjAyMy8xMS80IDg6MDQgQU0sIE1vcnRlbiBCcsO4cnVwIHdyb3RlOg0KPiA+ID4gPiA+IEkgaGF2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