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 B6BBA432F3; Fri, 10 Nov 2023 11:44:02 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A182140E5E; Fri, 10 Nov 2023 11:44:02 +0100 (CET) Received: from dkmailrelay1.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTP id 0113E40291 for ; Fri, 10 Nov 2023 11:44:02 +0100 (CET) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesys.local [192.168.4.10]) by dkmailrelay1.smartsharesystems.com (Postfix) with ESMTP id D235520E53; Fri, 10 Nov 2023 11:44:01 +0100 (CET) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Subject: RE: [dpdk-dev] [PATCH] ring: fix unaligned memory access on aarch32 X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Fri, 10 Nov 2023 11:43:56 +0100 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35E9F010@smartserver.smartshare.dk> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [dpdk-dev] [PATCH] ring: fix unaligned memory access on aarch32 Thread-Index: AdX2Nvy5Gi0oTfcnRCSjjFjXwwOPtYgw8JBwAT50woAAAePYAAACTyQgAABPRNA= References: <1583774395-10233-1-git-send-email-phil.yang@arm.com><98CBD80474FA8B44BF855DF32C47DC35E9EFD1@smartserver.smartshare.dk> <98CBD80474FA8B44BF855DF32C47DC35E9F00F@smartserver.smartshare.dk> From: =?utf-8?B?TW9ydGVuIEJyw7hydXA=?= To: "Konstantin Ananyev" , "Ruifeng Wang" , Cc: , , , , , , "Gavin Hu" X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Un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