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:
Bruce Richardson 2021-01-15 11:10:45 +00:00 committed by David Marchand
parent cd93ec8961
commit 7012833094
2 changed files with 2 additions and 2 deletions

View File

@ -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 */

View File

@ -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);