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 F15F6A0C40; Wed, 28 Apr 2021 14:42:23 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6A7F240697; Wed, 28 Apr 2021 14:42:23 +0200 (CEST) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTP id 1F4CD40147 for ; Wed, 28 Apr 2021 14:42:22 +0200 (CEST) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Date: Wed, 28 Apr 2021 14:42:20 +0200 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35C6171B@smartserver.smartshare.dk> In-Reply-To: <20210428122153.GU1726@platinum> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [dpdk-dev] [PATCH 3/4] net: introduce functions to verify L4 checksums Thread-Index: Adc8KRY3LBRjU7rHRv2H/jniJdX2PwAATq3w References: <20210427135755.927-1-olivier.matz@6wind.com> <20210427135755.927-4-olivier.matz@6wind.com> <98CBD80474FA8B44BF855DF32C47DC35C61718@smartserver.smartshare.dk> <20210428122153.GU1726@platinum> From: =?utf-8?B?TW9ydGVuIEJyw7hydXA=?= To: "Olivier Matz" Cc: , "Keith Wiles" , "Hongzhi Guo" , "Thomas Monjalon" Subject: Re: [dpdk-dev] [PATCH 3/4] net: introduce functions to verify L4 checksums 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" PiBGcm9tOiBkZXYgW21haWx0bzpkZXYtYm91bmNlc0BkcGRrLm9yZ10gT24gQmV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