[dpdk-dev] [PATCH v3] lib/librte_meter: fix divide by zero for RFC4115 meter
Dumitrescu, Cristian
cristian.dumitrescu at intel.com
Fri Mar 29 21:04:19 CET 2019
> -----Original Message-----
> From: Eelco Chaudron [mailto:echaudro at redhat.com]
> Sent: Tuesday, March 19, 2019 12:11 PM
> To: Dumitrescu, Cristian <cristian.dumitrescu at intel.com>
> Cc: dev at dpdk.org
> Subject: [PATCH v3] lib/librte_meter: fix divide by zero for RFC4115 meter
>
> 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>
>
> ---
> v3 - Rather than using a 0 check, set up profile data such that no
> check at runtime is needed.
> v2 - Removed configuration change that got included by accident
>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu at intel.com>
Applied to the next-qos tree, thanks!
More information about the dev
mailing list