[dpdk-dev] [PATCH v1] lib/metrics: fix silent fail when uninitialised
Thomas Monjalon
thomas at monjalon.net
Thu Jul 26 20:29:30 CEST 2018
02/07/2018 16:55, Remy Horton:
> If rte_metrics_init() had not been called and hence the internal
> metric storage is not allocated, rte_metrics_get_values() and
> rte_metrics_get_name() would silently fail by returning zero
> (i.e. no metrics registered). This patch changes the result of
> this scenario to an explicit fail by returning -EIO.
>
> Fixes: 349950ddb9c5 ("metrics: add information metrics library")
>
> Signed-off-by: Remy Horton <remy.horton at intel.com>
Applied, thanks
More information about the dev
mailing list