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:
c5b7197f662e ("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>
#include "rte_metrics.h"
#include "rte_metrics_telemetry.h"
+struct telemetry_metrics_data tel_met_data;
+
int metrics_log_level;
/* Logging Macros */
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);