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 D902AA034F; Sat, 16 Oct 2021 10:24:52 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6410140040; Sat, 16 Oct 2021 10:24:52 +0200 (CEST) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTP id 650844003F for ; Sat, 16 Oct 2021 10:24:50 +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:24:47 +0200 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35D86C45@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+tgAFJwLgAEs7PhAAAI72IA== 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" R2VvcmcsIEkgYXBvbG9naXplIGZvciBjYWxsaW5nIHlvdSBHZW9mZiBiZWxvdyEgSnVzdCByZWFs aXplZCBteSBtaXN0YWtlL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