From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 942D21150 for ; Fri, 3 Feb 2017 12:38:12 +0100 (CET) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga101.fm.intel.com with ESMTP; 03 Feb 2017 03:38:11 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,328,1477983600"; d="scan'208";a="60758240" Received: from irsmsx154.ger.corp.intel.com ([163.33.192.96]) by fmsmga005.fm.intel.com with ESMTP; 03 Feb 2017 03:38:10 -0800 Received: from irsmsx105.ger.corp.intel.com ([169.254.7.38]) by IRSMSX154.ger.corp.intel.com ([169.254.12.40]) with mapi id 14.03.0248.002; Fri, 3 Feb 2017 11:38:09 +0000 From: "Ananyev, Konstantin" To: Jianbo Liu CC: "dev@dpdk.org" , "Zhang, Helin" , "jerin.jacob@caviumnetworks.com" Thread-Topic: [PATCH 1/2] net/ixgbe: calculate the correct number of received packets in bulk alloc function Thread-Index: AQHSWb58asmucrnoMk2+2eqjXjRnOKFUl/1AgAKAP4CAAFAXYA== Date: Fri, 3 Feb 2017 11:38:09 +0000 Message-ID: <2601191342CEEE43887BDE71AB9772583F1109B4@irsmsx105.ger.corp.intel.com> References: <1482127758-4904-1-git-send-email-jianbo.liu@linaro.org> <2601191342CEEE43887BDE71AB9772583F10FF87@irsmsx105.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-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH 1/2] net/ixgbe: calculate the correct number of received packets in bulk alloc function 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: , X-List-Received-Date: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2dlc3Rpb24pOg0KPiA+ DQo+ID4gZm9yIChqID0gMDsgaiAhPSBMT09LX0FIRUFEOyBqKyspDQo+ID4gICAgICAgICBzW2pd ID0gcnRlX2xlX3RvX2NwdV8zMihyeGRwW2pdLndiLnVwcGVyLnN0YXR1c19lcnJvcik7DQo+ID4N Cj4gPiBydGVfc21wX3JtYigpOw0KPiA+DQo+ID4gZm9yIChqID0gMDsgaiA8IExPT0tfQUhFQUQg JiYgKHNbal0gJiBJWEdCRV9SWERBRFZfU1RBVF9ERCkgIT0gMDsgaisrKQ0KPiA+ICAgICAgICAg Ow0KPiA+DQo+ID4gZm9yIChqID0gMDsgaiA8IG5iX2RkOyArK2opIHsNCj4gPiAgICAgICAgIHBr dF9pbmZvW2pdID0gcnRlX2xlX3RvX2NwdV8zMihyeGRwW2pdLndiLmxvd2VyLmxvX2R3b3JkLmRh dGEpOw0KPiA+ICAgICAgICAgICAgICAgIC4uLi4NCj4gPg0KPiA+IEtvbnN0YW50aW4NCj4gPg0K PiA+DQo+ID4+DQo+ID4+ICAgICAgICAgICAgICAgLyogQ29tcHV0ZSBob3cgbWFueSBzdGF0dXMg Yml0cyB3ZXJlIHNldCAqLw0KPiA+PiAgICAgICAgICAgICAgIG5iX2RkID0gMDsNCj4gPj4gICAg ICAgICAgICAgICBmb3IgKGogPSAwOyBqIDwgTE9PS19BSEVBRDsgKytqKQ0KPiA+PiAtICAgICAg ICAgICAgICAgICAgICAgbmJfZGQgKz0gc1tqXSAmIElYR0JFX1JYREFEVl9TVEFUX0REOw0KPiA+ PiArICAgICAgICAgICAgICAgICAgICAgaWYgKHNbal0gJiBJWEdCRV9SWERBRFZfU1RBVF9ERCkN Cj4gPj4gKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKytuYl9kZDsNCj4gPj4gKyAgICAg ICAgICAgICAgICAgICAgIGVsc2UNCj4gPj4gKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAg YnJlYWs7DQo+ID4+DQo+ID4+ICAgICAgICAgICAgICAgbmJfcnggKz0gbmJfZGQ7DQo+ID4+DQo+ ID4+IC0tDQo+ID4+IDIuNC4xMQ0KPiA+DQo=