numam-dpdk/lib
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
..
librte_acl acl: fix 32-bit match for range field 2020-02-13 14:43:56 +01:00
librte_bbdev build: remove individual library versions 2019-11-20 23:05:39 +01:00
librte_bitratestats build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
librte_bpf bpf: fix headers install with meson 2020-02-06 09:20:07 +01:00
librte_cfgfile cfgfile: fix symbols map 2020-01-20 00:29:49 +01:00
librte_cmdline build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
librte_compressdev build: remove individual library versions 2019-11-20 23:05:39 +01:00
librte_cryptodev cryptodev: fix doxygen of CPU crypto API 2020-02-13 12:41:04 +01:00
librte_distributor build: remove unneeded function versioning 2020-02-05 21:27:29 +01:00
librte_eal service: fix crash on exit 2020-03-13 13:56:46 +01:00
librte_efd build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
librte_ethdev add top-level SPDX license tag 2020-02-22 16:11:53 +01:00
librte_eventdev eventdev: use custom element size rings 2020-01-19 19:32:50 +01:00
librte_fib fib: fix possible integer overflow 2020-02-06 16:17:14 +01:00
librte_flow_classify build: remove individual library versions 2019-11-20 23:05:39 +01:00
librte_gro build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
librte_gso build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
librte_hash hash: fix lock-free flag doxygen 2020-02-05 19:42:24 +01:00
librte_ip_frag lib: use common macro RTE_DIM 2020-02-05 14:37:41 +01:00
librte_ipsec ipsec: fix use of uninitialized variable 2020-02-20 11:16:46 +01:00
librte_jobstats build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
librte_kni kni: fix not contiguous FIFO 2020-02-14 11:59:01 +01:00
librte_kvargs build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
librte_latencystats latency: fix calculation for multi-thread 2020-01-20 01:32:50 +01:00
librte_lpm lpm6: make IPv6 address immutable 2020-02-16 20:45:46 +01:00
librte_mbuf lib: fix unnecessary double negation 2020-02-14 17:39:46 +01:00
librte_member build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
librte_mempool lib: fix unnecessary double negation 2020-02-14 17:39:46 +01:00
librte_meter meter: remove experimental flag from RFC4115 trTCM API 2020-01-20 16:37:27 +01:00
librte_metrics build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
librte_net build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
librte_pci build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
librte_pdump pdump: use dynamic log type 2020-02-05 19:42:24 +01:00
librte_pipeline build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
librte_port lib: use common macro RTE_DIM 2020-02-05 14:37:41 +01:00
librte_power power: fix error log on guest message polling 2019-11-26 00:29:24 +01:00
librte_rawdev build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
librte_rcu build: remove individual library versions 2019-11-20 23:05:39 +01:00
librte_reorder build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
librte_rib build: remove individual library versions 2019-11-20 23:05:39 +01:00
librte_ring ring: fix API documentation 2020-02-15 16:41:33 +01:00
librte_sched build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
librte_security security: add CPU crypto action type 2020-02-05 15:29:49 +01:00
librte_stack build: remove individual library versions 2019-11-20 23:05:39 +01:00
librte_table build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00
librte_telemetry telemetry: fix port stats retrieval 2020-03-13 13:57:04 +01:00
librte_timer build: remove unneeded function versioning 2020-02-05 21:27:29 +01:00
librte_vhost vhost: protect log address translation in IOTLB update 2020-02-14 12:42:13 +01:00
Makefile vhost: fix build dependency on hash lib 2019-11-08 23:15:05 +01:00
meson.build build: fix soname info for 19.11 compatibility 2019-12-19 16:18:21 +01:00