[dpdk-dev] [PATCH v2] lib/librte_meter: fix divide by zero for RFC4115 meter

Jens Freimann jfreimann at redhat.com
Tue Feb 5 09:40:36 CET 2019


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 at redhat.com
>
>Signed-off-by: Eelco Chaudron <echaudro at redhat.com>
>---
>
> 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 <jfreimann at redhat.com>




More information about the dev mailing list