From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id E26563421 for ; Thu, 28 Feb 2019 19:50:44 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Feb 2019 10:50:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,424,1544515200"; d="scan'208";a="322975622" Received: from irsmsx109.ger.corp.intel.com ([163.33.3.23]) by fmsmga006.fm.intel.com with ESMTP; 28 Feb 2019 10:50:42 -0800 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.28]) by IRSMSX109.ger.corp.intel.com ([169.254.13.83]) with mapi id 14.03.0415.000; Thu, 28 Feb 2019 18:50:41 +0000 From: "Dumitrescu, Cristian" To: Eelco Chaudron CC: "dev@dpdk.org" Thread-Topic: [PATCH v2] lib/librte_meter: fix divide by zero for RFC4115 meter Thread-Index: AQHUukhFIVXYli7WUUaE2EP7jji6I6X1tQeQ Date: Thu, 28 Feb 2019 18:50:41 +0000 Message-ID: <3EB4FA525960D640B5BDFFD6A3D891268E846048@IRSMSX108.ger.corp.intel.com> References: <154903721465.46418.12675922836824541692.stgit@dbuild> In-Reply-To: <154903721465.46418.12675922836824541692.stgit@dbuild> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMTE0NzBmNjEtZTQ1Mi00YWQ2LWJiZjYtNGM3ODlhM2UzY2MzIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiWVNXQmhuVW9VYVoxWmsza04remsrUGFXWWxiMzZxdktmN1wvbVQ4Vm1XVWdwUWlyQTZObDBXRHBhdjA5V0NvaU8ifQ== x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action 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] [PATCH v2] lib/librte_meter: fix divide by zero for RFC4115 meter 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: Thu, 28 Feb 2019 18:50:45 -0000 SGkgRWVsY28sDQoNClNvcnJ5IGZvciBteSBkZWxheWVkIHJlcGx5LA0KDQo+IC0tLS0tT3JpZ2lu YWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IEVlbGNvIENoYXVkcm9uIFttYWlsdG86ZWNoYXVkcm9A cmVkaGF0LmNvbV0NCj4gU2VudDogRnJpZGF5LCBGZWJydWFyeSAxLCAyMDE5IDQ6MDcgUE0NCj4g VG86IER1bWl0cmVzY3UsIENyaXN0aWFuIDxjcmlzdGlhbi5kdW1pdHJlc2N1QGludGVsLmNvbT4N Cj4gQ2M6IGRldkBkcGRrLm9yZw0KPiBTdWJqZWN0OiBbUEFUQ0ggdjJdIGxpYi9saWJydGVfbWV0 ZXI6IGZpeCBkaXZpZGUgYnkgemVybyBmb3IgUkZDNDExNSBtZXRlcg0KPiANCj4gUkZDIDQxMTUg YWxsb3dzIGEgbWV0ZXIgd2l0aCBlaXRoZXIgY2lyIGFuZC9vciBlaXIgY29uZmlndXJlZC4NCj4g V2hlbiBvbmx5IG9uZ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