[dpdk-dev] [PATCH v5 6/7] drivers/net/virtio: change xstats to use integer ids

2016-06-20 Thread Yuanhan Liu
On Wed, Jun 15, 2016 at 04:25:32PM +0100, Remy Horton wrote: > > +static int virtio_dev_xstats_get_names(struct rte_eth_dev *dev, > +struct rte_eth_xstat_name *xstats_names, > +__rte_unused unsigned limit) > +{ > + unsign

[dpdk-dev] [PATCH v5 6/7] drivers/net/virtio: change xstats to use integer ids

2016-06-15 Thread Remy Horton
The current extended ethernet statistics fetching involve doing several string operations, which causes performance issues if there are lots of statistics and/or network interfaces. This patch changes the virtio driver to use the new API that seperates name string and value queries. Signed-off-by: