ethdev: fetch extended statistics with integer ids
authorRemy Horton <remy.horton@intel.com>
Wed, 15 Jun 2016 15:25:27 +0000 (16:25 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 16 Jun 2016 15:40:16 +0000 (17:40 +0200)
commitbd6aa172cf35046e197b3a42a79069d4da15813a
tree154235ef30157b7570c8ced5cfc04a653a544973
parent6efad95f155a8020ffd90321864dd3067fff9e85
ethdev: fetch extended statistics with integer ids

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 xstats
functions to instead use a numeric identifier rather than a string, and
adds the ability to retrieve identifier-to-string mappings.

Signed-off-by: Remy Horton <remy.horton@intel.com>
doc/guides/prog_guide/poll_mode_drv.rst
lib/librte_ether/rte_ethdev.c
lib/librte_ether/rte_ethdev.h
lib/librte_ether/rte_ether_version.map