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 C79E4A0C47; Thu, 14 Oct 2021 22:22:28 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B588D40041; Thu, 14 Oct 2021 22:22:28 +0200 (CEST) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTP id CFEAD4003C for ; Thu, 14 Oct 2021 22:22:26 +0200 (CEST) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Date: Thu, 14 Oct 2021 22:22:24 +0200 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35D86C40@smartserver.smartshare.dk> X-MimeOLE: Produced By Microsoft Exchange V6.5 In-Reply-To: <14e68fb1-0c73-8a6f-0032-7adf186ceb0c@intel.com> 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+tgAFJwLg 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: "Ferruh Yigit" , "Georg Sauthoff" , "Olivier Matz" , "Thomas Monjalon" , "David Marchand" , "David Marchand" Cc: 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" PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9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