metrics: fix variable declaration in header
authorBruce Richardson <bruce.richardson@intel.com>
Fri, 15 Jan 2021 11:10:45 +0000 (11:10 +0000)
committerDavid Marchand <david.marchand@redhat.com>
Thu, 21 Jan 2021 09:27:47 +0000 (10:27 +0100)
commit701283309404e394693fba46ed71834593af808e
tree0e0d9924b755d1084d32c1f2da06ece2f459c700
parentcd93ec896191060310ec8761b3a10a5e02bc841c
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: 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>
lib/librte_metrics/rte_metrics_telemetry.c
lib/librte_metrics/rte_metrics_telemetry.h