From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id D720269A5 for ; Tue, 11 Apr 2017 18:38:59 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga105.jf.intel.com with ESMTP; 11 Apr 2017 09:38:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,186,1488873600"; d="scan'208";a="1134037859" Received: from gklab-246-020.igk.intel.com (HELO Sent) ([10.217.246.20]) by fmsmga001.fm.intel.com with SMTP; 11 Apr 2017 09:38:56 -0700 Received: by Sent (sSMTP sendmail emulation); Tue, 11 Apr 2017 18:37:29 +0200 From: Michal Jastrzebski To: dev@dpdk.org Cc: deepak.k.jain@intel.com, harry.van.haaren@intel.com, Jacek Piasecki Date: Tue, 11 Apr 2017 18:37:21 +0200 Message-Id: <1491928644-10383-1-git-send-email-michalx.k.jastrzebski@intel.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1491847180-24784-2-git-send-email-jacekx.piasecki@intel.com> References: <1491847180-24784-2-git-send-email-jacekx.piasecki@intel.com> Subject: [dpdk-dev] [PATCH v5 0/3] Extended xstats API in ethdev library to allow grouping of stats X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Apr 2017 16:39:00 -0000 From: Jacek Piasecki 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. v5 changes: * fix clang shared build compilation * remove wrong versioning macros * Makefile LIBABIVER 6 change v4 changes: * documentation change after API modification * fix xstats display for PMD without _by_ids() functions * fix ABI validator errors v3 changes: * checkpatch fixes * removed malloc bug in ethdev * add new command to proc_info and IDs parsing * merged testpmd and proc_info patch with library patch Jacek Piasecki (3): ethdev: new xstats API add retrieving by ID net/e1000: new xstats API add ID support for e1000 net/ixgbe: new xstats API add ID support for ixgbe app/proc_info/main.c | 150 ++++++++++- app/test-pmd/config.c | 19 +- doc/guides/prog_guide/poll_mode_drv.rst | 174 +++++++++++-- drivers/net/e1000/igb_ethdev.c | 92 ++++++- drivers/net/ixgbe/ixgbe_ethdev.c | 179 +++++++++++++ lib/librte_ether/rte_ethdev.c | 430 ++++++++++++++++++++++++-------- lib/librte_ether/rte_ethdev.h | 170 ++++++++++++- lib/librte_ether/rte_ether_version.map | 5 + 8 files changed, 1063 insertions(+), 156 deletions(-) -- 1.9.1