> From: Piasecki, JacekX > Sent: Monday, April 3, 2017 1:10 PM > To: dev@dpdk.org > Cc: Van Haaren, Harry <harry.van.haa...@intel.com>; Jastrzebski, MichalX K > <michalx.k.jastrzeb...@intel.com>; Piasecki, JacekX > <jacekx.piase...@intel.com>; Kozak, KubaX > <kubax.ko...@intel.com>; Kulasek, TomaszX <tomaszx.kula...@intel.com> > Subject: [PATCH v3 1/3] add new xstats API retrieving by id > > From: Michal Jastrzebski <michalx.k.jastrzeb...@intel.com> > > Extended xstats API in ethdev library to allow grouping of stats > logically so they can be retrieved per logical grouping – managed > by the application. > Changed existing functions rte_eth_xstats_get_names and > rte_eth_xstats_get to use a new list of arguments: array of ids > and array of values. ABI versioning mechanism was used to > support backward compatibility. > Introduced two new functions rte_eth_xstats_get_all and > rte_eth_xstats_get_names_all which keeps functionality of the > previous ones (respectively rte_eth_xstats_get and > rte_eth_xstats_get_names) but use new API inside. > Both functions marked as deprecated. > Introduced new function: rte_eth_xstats_get_id_by_name > to retrieve xstats ids by its names. > > test-pmd: add support for new xstats API retrieving by id in > testpmd application: xstats_get() and > xstats_get_names() call with modified parameters. > > proc_info: add support for new xstats API retrieving by id to > proc_info application. There is a new argument --xstats-ids > in proc_info command line to retrieve statistics given by ids. > E.g. --xstats-ids="1,3,5,7,8" > > Signed-off-by: Jacek Piasecki <jacekx.piase...@intel.com> > Signed-off-by: Kuba Kozak <kubax.ko...@intel.com> > Signed-off-by: Tomasz Kulasek <tomaszx.kula...@intel.com> > --- > app/proc_info/main.c | 148 +++++++++++- > app/test-pmd/config.c | 19 +- > lib/librte_ether/Makefile | 2 +- > lib/librte_ether/rte_ethdev.c | 422 > +++++++++++++++++++++++++-------- > lib/librte_ether/rte_ethdev.h | 176 +++++++++++++- > lib/librte_ether/rte_ether_version.map | 12 + > 6 files changed, 646 insertions(+), 133 deletions(-)
I gather this patchset contains various changes at once to avoid breaking compile due to function changes. All 3 of patchset compiled and working with ixgbe, Acked-by: Harry van Haaren <harry.van.haa...@intel.com>