[dpdk-dev] [PATCH 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

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

2017-10-23 Thread Thomas Monjalon
20/10/2017 02:03, Ferruh Yigit: > ethdev xstat get by id APIs: > rte_eth_xstats_get_names_by_id() > rte_eth_xstats_get_by_id() > > Works on ids calculated as "basic stats + device specific stats" > > When an application asking for id less than "basic stats count", it is > indeed asking basic stat

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

2017-10-20 Thread Ivan Malov
On Fri, Oct 20, 2017 at 01:03:50AM +0100, Ferruh Yigit wrote: > ethdev xstat get by id APIs: > rte_eth_xstats_get_names_by_id() > rte_eth_xstats_get_by_id() > > Works on ids calculated as "basic stats + device specific stats" > > When an application asking for id less than "basic stats count", it

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

2017-10-19 Thread Ferruh Yigit
ethdev xstat get by id APIs: rte_eth_xstats_get_names_by_id() rte_eth_xstats_get_by_id() Works on ids calculated as "basic stats + device specific stats" When an application asking for id less than "basic stats count", it is indeed asking basic stats nothing specific to device stats. The dev_ops