numam-dpdk/lib/librte_telemetry
Ciara Power 341a793eb1 telemetry: fix port stats retrieval
The ep struct is used to track what type of stats are required by the
client. For PORT_STATS type, it contains the lists of port and metric
ids to query, and the number of ids in each list.

The ep struct has values set (num of port and metric ids) when a request
for port stats values by name is received. However, after this value
assignment, the struct is reset to all 0 values, meaning the number of
port and metric ids required now both show as 0, and the client will not
receive the requested data in response. To fix this issue, the memset
call is now moved above the ep struct value assignment.

Fixes: 4080e46c80 ("telemetry: support global metrics")
Cc: stable@dpdk.org

Signed-off-by: Ciara Power <ciara.power@intel.com>
Reviewed-by: Kevin Laatz <kevin.laatz@intel.com>
2020-03-13 13:57:04 +01:00
..
Makefile build: remove individual library versions 2019-11-20 23:05:39 +01:00
meson.build telemetry: fix build with gcc 9 2019-07-04 18:48:04 +02:00
rte_telemetry_internal.h telemetry: fix build with gcc 9 2019-07-04 18:48:04 +02:00
rte_telemetry_parser_test.c lib: use common macro RTE_DIM 2020-02-05 14:37:41 +01:00
rte_telemetry_parser.c telemetry: fix port stats retrieval 2020-03-13 13:57:04 +01:00
rte_telemetry_parser.h enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +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 telemetry: fix build with gcc 9 2019-07-04 18:48:04 +02:00
rte_telemetry.h enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00