metrics: fix variable declaration in header
The global variable "tel_met_data" was declared in a header file, rather
than in a C file, leading to duplicate definitions if more than one C
file included the header.
Fixes: c5b7197f66
("telemetry: move some functions to metrics library")
Cc: stable@dpdk.org
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
This commit is contained in:
parent
cd93ec8961
commit
7012833094
@ -13,6 +13,8 @@
|
||||
#include "rte_metrics.h"
|
||||
#include "rte_metrics_telemetry.h"
|
||||
|
||||
struct telemetry_metrics_data tel_met_data;
|
||||
|
||||
int metrics_log_level;
|
||||
|
||||
/* Logging Macros */
|
||||
|
@ -34,8 +34,6 @@ struct telemetry_metrics_data {
|
||||
int metrics_register_done;
|
||||
};
|
||||
|
||||
struct telemetry_metrics_data tel_met_data;
|
||||
|
||||
__rte_experimental
|
||||
int32_t rte_metrics_tel_reg_all_ethdev(int *metrics_register_done,
|
||||
int *reg_index_list);
|
||||
|
Loading…
Reference in New Issue
Block a user