numam-dpdk/lib/librte_telemetry
Bruce Richardson c12cefa379 telemetry: fix mapping of statistics
If we have two NIC ports which have a different set of NIC stats we can
end up having two different stats registered with xstats with the same
name. [Since the stats are updated in bulk as a contiguous set, the
second driver re-using the registration of the first is not possible.]

This causes issues with the invalid stat for one driver being found due to
a lookup by name which is unnecessary. Instead of getting stat names
involved do the lookup by ID instead.

Fixes: 1b756087db ("telemetry: add parser for client socket messages")
Cc: stable@dpdk.org

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Kevin Laatz <kevin.laatz@intel.com>
2019-04-02 02:30:53 +02:00
..
Makefile telemetry: format json response when sending stats 2018-10-27 15:18:23 +02:00
meson.build build: improve dependency handling 2019-02-27 12:13:54 +01:00
rte_telemetry_internal.h telemetry: fix using ports of different types 2018-12-22 03:23:06 +01:00
rte_telemetry_parser_test.c telemetry: format json response when sending stats 2018-10-27 15:18:23 +02:00
rte_telemetry_parser_test.h telemetry: format json response when sending stats 2018-10-27 15:18:23 +02:00
rte_telemetry_parser.c telemetry: fix mapping of statistics 2019-04-02 02:30:53 +02:00
rte_telemetry_parser.h telemetry: add parser for client socket messages 2018-10-27 15:18:23 +02:00
rte_telemetry_socket_tests.h telemetry: format json response when sending stats 2018-10-27 15:18:23 +02:00
rte_telemetry_version.map telemetry: format json response when sending stats 2018-10-27 15:18:23 +02:00
rte_telemetry.c eal: rename option name field 2019-01-15 02:40:40 +01:00
rte_telemetry.h telemetry: format json response when sending stats 2018-10-27 15:18:23 +02:00