From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 621F27F38 for ; Thu, 6 Nov 2014 17:06:15 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP; 06 Nov 2014 08:09:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.97,862,1389772800"; d="scan'208";a="412492519" Received: from irsmsx103.ger.corp.intel.com ([163.33.3.157]) by FMSMGA003.fm.intel.com with ESMTP; 06 Nov 2014 08:06:50 -0800 Received: from irsmsx105.ger.corp.intel.com ([169.254.7.56]) by IRSMSX103.ger.corp.intel.com ([169.254.3.56]) with mapi id 14.03.0195.001; Thu, 6 Nov 2014 16:15:24 +0000 From: "Ananyev, Konstantin" To: Alex Markuze , "dev@dpdk.org" Thread-Topic: [dpdk-dev] UDP Checksum Thread-Index: AQHP+duWQ+CHGJZ3ck2UAVZQPh0WuJxTxB0w Date: Thu, 6 Nov 2014 16:15:24 +0000 Message-ID: <2601191342CEEE43887BDE71AB977258213A2E79@IRSMSX105.ger.corp.intel.com> References: In-Reply-To: Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.181] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] UDP Checksum X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Nov 2014 16:06:18 -0000 DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogZGV2IFttYWlsdG86ZGV2 LWJvdW5jZXNAZHBkay5vcmddIE9uIEJlaGFsZiBPZiBBbGV4IE1hcmt1emUNCj4gU2VudDogVG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kIHNldHVw IHBzZXVkby1oZWFkZXIgY2hlY2tzdW0gZm9yIFVEUC4NCkZyb20gYXBwL3Rlc3QtcG1kL2NzdW1v bmx5LmM6DQouLi4NCmlmIChwa3Rfb2xfZmxhZ3MgJiAoUEtUX1JYX0lQVjRfSERSIHwgUEtUX1JY X1RVTk5FTF9JUFY0X0hEUikpIHsNCg0KICAgICAgICAgICAgICAgICAgICAgICAgLyogRG8gbm90 IHN1cHBvcnQgaXB2NCBvcHRpb24gZmllbGQgKi8NCiAgICAgICAgICAgICAgICAgICAgICAgIGwz X2xlbiA9IHNpemVvZihzdHJ1Y3QgaXB2NF9oZHIpIDsNCg0KICAgICAgICAgICAgICAgICAgICAg ICAgLi4uDQoNCiAgICAgICAgICAgICAgICAgICAgICAgIC8qIERvIG5vdCBkZWxldGUsIHRoaXMg aXMgcmVxdWlyZWQgYnkgSFcqLw0KICAgICAgICAgICAgICAgICAgICAgICAgaXB2NF9oZHItPmhk cl9jaGVja3N1bSA9IDA7DQoNCiAgICAgICAgICAgICAgICAgICAgICAgLi4uDQogICANCiAgICAg ICAgICAgICAgICAgICAgICBpZiAobDRfcHJvdG8gPT0gSVBQUk9UT19VRFApIHsNCiAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgdWRwX2hkciA9IChzdHJ1Y3QgdWRwX2hkciopIChydGVf cGt0bWJ1Zl9tdG9kKG1iLA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgdW5zaWduZWQgY2hhciAqKSArIGwyX2xlbiArIGwzX2xlbik7DQogICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgIGlmICh0eF9vbF9mbGFncyAmIDB4Mikgew0KICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8qIEhXIE9mZmxvYWQgKi8NCiAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBvbF9mbGFncyB8PSBQS1RfVFhfVURQX0NL U1VNOw0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChpcHY0X3R1 bm5lbCkNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHVk cF9oZHItPmRncmFtX2Nrc3VtID0gMDsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICBlbHNlDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAvKiBQc2V1ZG8gaGVhZGVyIHN1bSBuZWVkIGJlIHNldCBwcm9wZXJseSAqLw0KICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdWRwX2hkci0+ZGdyYW1f Y2tzdW0gPQ0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICBnZXRfaXB2NF9wc2Rfc3VtKGlwdjRfaGRyKTsNCg0KDQoNCg==