metrics: fix library cleanup
authorHemant Agrawal <hemant.agrawal@nxp.com>
Tue, 19 May 2020 10:52:57 +0000 (16:22 +0530)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 19 May 2020 12:05:21 +0000 (14:05 +0200)
commit1168be00778a98eee7e15a811652ea6645051a56
tree09826c86d935fbbab91065979c86410f4a639e8e
parent8354e681e347f72a0102f3443e3c154b0984295d
metrics: fix library cleanup

metrics_initialized shall be reset in deinit function.
This is currently causing issue in running metrics_autotest
multiple times.

Fixes: 07c1b6925b65 ("telemetry: invert dependency on metrics library")

Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Acked-by: David Marchand <david.marchand@redhat.com>
lib/librte_metrics/rte_metrics.c