[dpdk-dev] [PATCH v1 0/6] Extended xstats API in ethdev library to allow grouping of stats
Michal Jastrzebski
michalx.k.jastrzebski at intel.com
Thu Apr 27 16:42:34 CEST 2017
From: Kuba Kozak <kubax.kozak at intel.com>
This patchset fixes following patches:
commit ea85e7d711b6 ("ethdev: retrieve xstats by ID")
commit a954495245c4 ("ethdev: get xstats ID by name")
commit 1223608adb9b ("app/proc-info: support xstats by ID")
commit 25e38f09af9c ("net/e1000: support xstats by ID")
commit 923419333f5a ("net/ixgbe: support xstats by ID")
This patch addresses some API concerns with the xstat patchset
applied in DPDK 17.05 RC2.
For clarity the first patch reverts all changes from the above
commits.
The subsequent patches extends the xstats API in ethdev library
to allow grouping of stats logically so they can be retrieved per
logical grouping managed by the application.
The patchset adds new functions rte_eth_xstats_get_names_by_id()
and rte_eth_xstats_get_by_id() to use a new list of arguments:
array of ids and array of values. It also introduces a new
function, rte_eth_xstats_get_id_by_name(), to retrieve xstats ids
by their names.
It also extends the functionality of the proc_info application:
--xstats-name NAME: to display single xstat value by NAME
Finally the test-pmd application is updated to use new API.
Kuba Kozak (6):
ethdev: revert patches extending xstats API in ethdev
ethdev: retrieve xstats by ID
ethdev: get xstats ID by name
app/proc-info: support xstats by ID and by name
net/e1000: support xstats by ID
net/ixgbe: support xstats by ID
app/proc_info/main.c | 12 +-
app/test-pmd/config.c | 19 ++-
doc/guides/prog_guide/poll_mode_drv.rst | 22 ++--
doc/guides/rel_notes/release_17_05.rst | 5 +-
drivers/net/e1000/igb_ethdev.c | 26 ++--
drivers/net/ixgbe/ixgbe_ethdev.c | 25 ++--
lib/librte_ether/rte_ethdev.c | 224 +++++++++++++++++++++-----------
lib/librte_ether/rte_ethdev.h | 175 ++++++++-----------------
lib/librte_ether/rte_ether_version.map | 6 +-
9 files changed, 259 insertions(+), 255 deletions(-)
--
2.7.4
More information about the dev
mailing list