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 32F6F432F3; Fri, 10 Nov 2023 10:45:03 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B77A540291; Fri, 10 Nov 2023 10:45:02 +0100 (CET) Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by mails.dpdk.org (Postfix) with ESMTP id 30B9F40268 for ; Fri, 10 Nov 2023 10:45:01 +0100 (CET) Received: from frapeml500008.china.huawei.com (unknown [172.18.147.207]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4SRYjx1fQvz67M1q; Fri, 10 Nov 2023 17:41:25 +0800 (CST) Received: from frapeml500007.china.huawei.com (7.182.85.172) by frapeml500008.china.huawei.com (7.182.85.71) 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 10:44:59 +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 10:44:59 +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: AdX2Nvy5Gi0oTfcnRCSjjFjXwwOPtYgw8JBwAT50woAAAePYAAACTyQg Date: Fri, 10 Nov 2023 09:44:59 +0000 Message-ID: References: <1583774395-10233-1-git-send-email-phil.yang@arm.com> <98CBD80474FA8B44BF855DF32C47DC35E9EFD1@smartserver.smartshare.dk> <98CBD80474FA8B44BF855DF32C47DC35E9F00F@smartserver.smartshare.dk> In-Reply-To: <98CBD80474FA8B44BF855DF32C47DC35E9F00F@smartserver.smartshare.dk> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.81.198.89] 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 DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogTW9ydGVuIEJyw7hydXAg PG1iQHNtYXJ0c2hhcmVzeXN0ZW1zLmNvbT4NCj4gU2VudDogRnJpZGF5LCBOb3ZlbWJlciAxMCwg MjAyMyA5OjM0IEFNDQo+IFRvOiBSdWlmZW5nIFdhbmcgPFJ1aWZlbmcuV2FuZ0Bhcm0uY29tPjsg aG9ubmFwcGEubmFnYXJhaGFsbGlAYXJtLmNvbQ0KPiBDYzogZGV2QGRwZGsub3JnOyBkYXZpZC5t YXJjaGFuZEByZWRoYXQuY29tOyBvbGl2aWVyLm1hdHpANndpbmQuY29tOyBkaGFybWlrLnRoYWtr YXJAYXJtLmNvbTsgbmRAYXJtLmNvbTsNCj4gYW5kcmV3LnJ5YmNoZW5rb0Bva3RldGxhYnMucnU7 IEdhdmluIEh1IDxHYXZpbi5IdUBhcm0uY29tPg0KPiBTdWJqZWN0OiBSRTogW2RwZGstZGV2XSBb UEFUQ0hdIHJpbmc6IGZpeCB1bmFsaWduZWQgbWVtb3J5IGFjY2VzcyBvbiBhYXJjaDMyDQo+IA0K PiArQ0MgR2F2aW4sIHJldmlld2VkIHRoZSB0ZXN0IGNhc2UNCj4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