Been away, hence the somewhat late review.. On 16/12/2016 09:44, Olivier Matz wrote: [..]
Today, each 'id' returned by rte_eth_xstats_get() is equal to the index in the returned array, making this value useless. It also prevents a driver from having different indexes for names and value, like in the example below:
My original intention was to give free reign over what id numbers are used, but for reasons I've now forgotten the implementation ended up making everything sequential.
CC: sta...@dpdk.org Fixes: bd6aa172cf35 ("ethdev: fetch extended statistics with integer ids") Signed-off-by: Olivier Matz <olivier.m...@6wind.com>
Acked-by: Remy Horton <remy.hor...@intel.com>