Re: [dpdk-dev] [PATCH v2 2/3] ethdev: fix xstats get by id APIS

2017-10-23 Thread Thomas Monjalon
24/10/2017 01:15, Ferruh Yigit: > xstats _by_id() APIs are broken because ids known by user sent directly > to the PMDs. > > ethdev xstat get by id APIs: > rte_eth_xstats_get_names_by_id() and rte_eth_xstats_get_by_id() > work on ids calculated as "basic stats + extended stats" > > When an applic

[dpdk-dev] [PATCH v2 2/3] ethdev: fix xstats get by id APIS

2017-10-23 Thread Ferruh Yigit
xstats _by_id() APIs are broken because ids known by user sent directly to the PMDs. ethdev xstat get by id APIs: rte_eth_xstats_get_names_by_id() and rte_eth_xstats_get_by_id() work on ids calculated as "basic stats + extended stats" When an application asking for id less than "basic stats count