git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
common/octeontx2: upgrade mbox definition to version 7
[dpdk.git]
/
lib
/
librte_metrics
/
rte_metrics.h
diff --git
a/lib/librte_metrics/rte_metrics.h
b/lib/librte_metrics/rte_metrics.h
index
77bffe0
..
fbe64dd
100644
(file)
--- a/
lib/librte_metrics/rte_metrics.h
+++ b/
lib/librte_metrics/rte_metrics.h
@@
-30,8
+30,11
@@
extern "C" {
#endif
extern "C" {
#endif
+extern int metrics_initialized;
+
/** Maximum length of metric name (including null-terminator) */
#define RTE_METRICS_MAX_NAME_LEN 64
/** Maximum length of metric name (including null-terminator) */
#define RTE_METRICS_MAX_NAME_LEN 64
+#define RTE_METRICS_MAX_METRICS 256
/**
* Global metric special id.
/**
* Global metric special id.
@@
-43,7
+46,6
@@
extern "C" {
*/
#define RTE_METRICS_GLOBAL -1
*/
#define RTE_METRICS_GLOBAL -1
-
/**
* A name-key lookup for metrics.
*
/**
* A name-key lookup for metrics.
*
@@
-71,7
+73,6
@@
struct rte_metric_value {
uint64_t value;
};
uint64_t value;
};
-
/**
* Initializes metric module. This function must be called from
* a primary process before metrics are used.
/**
* Initializes metric module. This function must be called from
* a primary process before metrics are used.