From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 492615A30 for ; Tue, 2 Aug 2016 08:59:40 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP; 01 Aug 2016 23:59:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,459,1464678000"; d="scan'208";a="1028125867" Received: from pgsmsx101.gar.corp.intel.com ([10.221.44.78]) by orsmga002.jf.intel.com with ESMTP; 01 Aug 2016 23:59:38 -0700 Received: from pgsmsx103.gar.corp.intel.com ([169.254.2.247]) by PGSMSX101.gar.corp.intel.com ([169.254.1.44]) with mapi id 14.03.0248.002; Tue, 2 Aug 2016 14:59:37 +0800 From: "Zhao1, Wei" To: "Wu, Jingjing" , Kyle Larose CC: "'dev@dpdk.org'" Thread-Topic: [dpdk-dev] [PATCH v2] net/i40e: fix Rx statistic inconsistent Thread-Index: AQHR6XaGdJoJIQuvH0+vFFh/TF6sAKAvIPaAgASvvZCAATTjsIAAO3RA Date: Tue, 2 Aug 2016 06:59:36 +0000 Message-ID: References: <1469782239-48758-1-git-send-email-wei.zhao1@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNTJhNWZkOTYtOTA5Yy00NDNiLWE2M2EtNGFkMDE1Mzg2ODkxIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IjNyXC9naWhJYUJFNzkyUGVJZE9WTzh1MU1wTVwvYzh2NjUyZGhlT2F2VGVyND0ifQ== x-ctpclassification: CTP_IC x-originating-ip: [172.30.20.205] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v2] net/i40e: fix Rx statistic inconsistent 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: Tue, 02 Aug 2016 06:59:41 -0000 SGksIFd1amluZ2ppbmcgYW5kIEt5bGUgTGFyb3NlIA0KDQoNCg0KPiAtLS0tLU9yaWdpbmFsIE1l c3NhZ2UtLS0tLQ0KPiBGcm9tOiBaaGFvMSwgV2VpDQo+IFNlbnQ6IFR1ZXNkYXksIEF1Z3VzdCAy LCAyMDE2IDExOjI3IEFNDQo+IFRvOiBXdSwgSmluZ2ppbmcgPGppbmdqaW5nLnd1QGludGVsLmNv bT47IEx1LCBXZW56aHVvDQo+IDx3ZW56aHVvLmx1QGludGVsLmNvbT4NCj4gQ2M6IGRldkBkcGRr Lm9yZw0KPiBTdWJqZWN0OiBSRTogW2RwZGstZGV2XSBbUEFUQ0ggdjJdIG5ldC9pNDBlOiBmaXgg Unggc3RhdGlzdGljIGluY29uc2lzdGVudA0KPiANCj4gSGksV3UgamluZ2ppbmcgYW5kIHdlbnpo dW8NCj4gDQo+ID4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gPiBGcm9tOiBaaGFvMSwg V2VpDQo+ID4gU2VudDogTW9uZGF5LCBBdWd1c3QgMSwgMjAxNiA0OjU4IFBNDQo+ID4gVG86ICdL eWxlIExhcm9zZScgPGVvbWVyZWFkaWdAZ21haWwuY29tPg0KPiA+IENjOiBkZXZAZHBkay5vcmcN Cj4gPiBTdWJqZWN0OiBSRTogW2RwZGstZGV2XSBbUE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