The generic statistics structure is getting bigger as new statistics are
added in specific devices. For instance, fdir, tx_pause or loopback
stats do not apply on virtual devices. It won't be possible to add every
specific statistics in this generic stats structure, but on the other
hand these specific statistics are useful for debugging purpose.

This 2 patches introduces xstats_get() and xstats_reset() in
dev_ops. When registered by a device, it can be used to provide
arbitrary statistics that are identified by a name, as done by eththool
in kernel.

After that, some statistics could be moved from the generic structure to
this new framework, but it will be part of another patch series as it
should be discussed first.

Olivier Matz (2):
  ethdev: add a new rte_eth_xstats_get method to retrieve extended
    statistics
  testpmd: add a new command to get the extended statistics of a port

 app/test-pmd/cmdline.c        |  22 +++++--
 app/test-pmd/config.c         |  34 +++++++++++
 app/test-pmd/testpmd.h        |   2 +
 lib/librte_ether/rte_ethdev.c | 137 ++++++++++++++++++++++++++++++++++++++++++
 lib/librte_ether/rte_ethdev.h |  60 +++++++++++++++++-
 5 files changed, 247 insertions(+), 8 deletions(-)

-- 
2.0.1

Reply via email to