From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 67B2F69D4 for ; Tue, 5 Feb 2019 09:40:39 +0100 (CET) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5F5AA87623; Tue, 5 Feb 2019 08:40:38 +0000 (UTC) Received: from localhost (dhcp-192-225.str.redhat.com [10.33.192.225]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BE31A60F8A; Tue, 5 Feb 2019 08:40:37 +0000 (UTC) Date: Tue, 5 Feb 2019 09:40:36 +0100 From: Jens Freimann To: Eelco Chaudron Cc: cristian.dumitrescu@intel.com, dev@dpdk.org Message-ID: <20190205084036.xfhfigvku7a3apxe@jenstp.localdomain> References: <154903721465.46418.12675922836824541692.stgit@dbuild> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <154903721465.46418.12675922836824541692.stgit@dbuild> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Tue, 05 Feb 2019 08:40:38 +0000 (UTC) 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: Tue, 05 Feb 2019 08:40:39 -0000 On Fri, Feb 01, 2019 at 04:07:16PM +0000, Eelco Chaudron wrote: >RFC 4115 allows a meter with either cir and/or eir configured. >When only one is configured a divide by zero would occur. > >Fixes: 655796d2b5fb ("meter: support RFC4115 trTCM") >Cc: echaudro@redhat.com > >Signed-off-by: Eelco Chaudron >--- > > v2 - Removed configuration change that got included by accident > > lib/librte_meter/rte_meter.h | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > Reviewed-by: Jens Freimann