metrics: add function to deinitialise library
authorHarman Kalra <hkalra@marvell.com>
Thu, 11 Jul 2019 09:26:05 +0000 (09:26 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 16 Jul 2019 10:45:30 +0000 (12:45 +0200)
commit44dc7c0a2609189ff7154872abaeadb9dce4ea04
tree51d20f6cfdfdb518710d8352c917891497e1d81b
parentc199ca15769370c848179065a57132569c6f03b3
metrics: add function to deinitialise library

Once the library usage is over, it must be deinitialized which
will free the shared memory reserved during initialization.

Observed an issue while running 'metrics_autotest' continuously
without quiting. For the first run 'metrics_autotest' passes
all test cases but second run onwards first test case fails
because metrics library is already initialized during first run.

Signed-off-by: Harman Kalra <hkalra@marvell.com>
Acked-by: Remy Horton <remy.horton@intel.com>
Acked-by: Reshma Pattan <reshma.pattan@intel.com>
doc/guides/prog_guide/metrics_lib.rst
lib/librte_metrics/rte_metrics.c
lib/librte_metrics/rte_metrics.h
lib/librte_metrics/rte_metrics_version.map