From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id A572CA046B for ; Thu, 27 Jun 2019 15:26:52 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7B395316B; Thu, 27 Jun 2019 15:26:50 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id D72F62BE3; Thu, 27 Jun 2019 15:26:47 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Jun 2019 06:26:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,423,1557212400"; d="scan'208,217";a="170421061" Received: from irsmsx110.ger.corp.intel.com ([163.33.3.25]) by FMSMGA003.fm.intel.com with ESMTP; 27 Jun 2019 06:26:44 -0700 Received: from irsmsx104.ger.corp.intel.com ([169.254.5.143]) by irsmsx110.ger.corp.intel.com ([169.254.15.217]) with mapi id 14.03.0439.000; Thu, 27 Jun 2019 14:26:43 +0100 From: "Ananyev, Konstantin" To: Andrew Rybchenko , Ivan Malov , Olivier Matz CC: "dev@dpdk.org" , "Kulasek, TomaszX" , "stable@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] net: fix the way how L4 checksum choice is tested Thread-Index: AQHVFkS05fsTOuKkj0m2RBehv7AAr6aq2QhggAADIJD///PmgIAE2Nsg Date: Thu, 27 Jun 2019 13:26:42 +0000 Message-ID: <2601191342CEEE43887BDE71AB97725801689E60D2@IRSMSX104.ger.corp.intel.com> References: <20190529173337.31157-1-ivan.malov@oktetlabs.ru> <2601191342CEEE43887BDE71AB97725801689E3F36@IRSMSX104.ger.corp.intel.com> In-Reply-To: Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYzc4OTQ4ZGUtOTFlOC00ZjM0LWFkMjUtMGU0YjJlYzQ0N2NlIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiM0plRGY4ZGxiayt5UUtDWlRJVjgxeDE2ZEduT2tFamhqbmx3aEdpQWlwaitubCtFRXE0MnhtT0F6SmpKdkEwaiJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [163.33.239.180] MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] [PATCH] net: fix the way how L4 checksum choice is tested X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" DQoNCkZyb206IEFuZHJldyBSeWJjaGVua28gW21haWx0bzphcnliY2hlbmtvQHNvbGFyZmxhcmUu Y29tXQ0KU2VudDogTW9uZGF5LCBKdW5lIDI0LCAyMDE5IDE6MTcgUE0NClRvOiBBbmFueWV2LCBL b25zdGFudGluIDxrb25zdGFudGluLmFuYW55ZXZAaW50ZWwuY29tPjsgSXZhbiBNYWxvdiA8aXZh bi5tYWxvdkBva3RldGxhYnMucnU+OyBPbGl2aWVyIE1hdHogPG9saXZp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