From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michal Jastrzebski Subject: [PATCH v2 0/5] Extended xstats API in ethdev library to allow grouping of stats Date: Thu, 30 Mar 2017 23:50:35 +0200 Message-ID: <1490910640-244285-1-git-send-email-michalx.k.jastrzebski@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To: dev@dpdk.org Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 93A5D559A for ; Thu, 30 Mar 2017 23:51:28 +0200 (CEST) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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. Extended functionality of proc_info application: --xstats-name NAME: to display single xstat value by NAME Updated test-pmd application to use new API. v2 changes: replaced grouping mechanism to use mechanism based on IDs Jacek Piasecki (5): add new xstats API retrieving by id add new xstats API id support for e1000 add new xstats API id support for ixgbe add support for new xstats API retrieving by id add support for new xstats API retrieving by id app/proc_info/main.c | 56 ++++- app/test-pmd/config.c | 18 +- drivers/net/e1000/igb_ethdev.c | 92 ++++++- drivers/net/ixgbe/ixgbe_ethdev.c | 178 ++++++++++++++ lib/librte_ether/Makefile | 2 +- lib/librte_ether/rte_ethdev.c | 435 +++++++++++++++++++++++++-------- lib/librte_ether/rte_ethdev.h | 168 ++++++++++++- lib/librte_ether/rte_ether_version.map | 12 + 8 files changed, 824 insertions(+), 137 deletions(-) -- 1.9.1