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 9A667A034F; Sat, 16 Oct 2021 10:21:08 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 43E3640040; Sat, 16 Oct 2021 10:21:08 +0200 (CEST) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTP id 92F4A4003F for ; Sat, 16 Oct 2021 10:21:07 +0200 (CEST) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Date: Sat, 16 Oct 2021 10:21:03 +0200 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35D86C44@smartserver.smartshare.dk> X-MimeOLE: Produced By Microsoft Exchange V6.5 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [dpdk-dev] [PATCH 1/1] net: fix aliasing issue in checksum computation Thread-Index: AdfBIyqwnzYzJVDRSbSWzs9j4Xj+tgAFJwLgAEs7PhA= References: <20210918114930.245387-1-mail@gms.tf> <20210918114930.245387-2-mail@gms.tf> <14e68fb1-0c73-8a6f-0032-7adf186ceb0c@intel.com> From: =?utf-8?B?TW9ydGVuIEJyw7hydXA=?= To: "Georg Sauthoff" Cc: , "Ferruh Yigit" , "Olivier Matz" , "Thomas Monjalon" , "David Marchand" Subject: Re: [dpdk-dev] [PATCH 1/1] net: fix aliasing issue in checksum computation 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 Sender: "dev" R2VvZmYsDQoNCkkgaGF2ZSBnaXZlbiB0aGlzIHNvbWUgbW9yZSB0aG91Z2h0cy4NCg0KTW9zdCBi eXRlcyB0cmFuc2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