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 RFC patchset changes the API for xstats to use integer identifiers instead of strings and implements this new API for the ixgbe driver. Others drivers to follow.
-- v2 changes: * Fetching xstats count now seperate API function * Added #define constants for some magic numbers * Fixed bug with virtual function count fetching * For non-xstats-supporting drivers, queue stats returned * Some refactoring/cleanups * Removed index assumption from example Remy Horton (3): rte: change xstats to use integer keys drivers/net/ixgbe: change xstats to use integer keys examples/ethtool: add xstats display command drivers/net/ixgbe/ixgbe_ethdev.c | 98 ++++++++++++++++++++++++++++----- examples/ethtool/ethtool-app/ethapp.c | 57 +++++++++++++++++++ lib/librte_ether/rte_ethdev.c | 100 +++++++++++++++++++++++++++++----- lib/librte_ether/rte_ethdev.h | 55 +++++++++++++++++++ 4 files changed, 284 insertions(+), 26 deletions(-) -- 2.5.5