From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id AE2AF2B9D for ; Thu, 2 Mar 2017 15:14:28 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP; 02 Mar 2017 06:14:26 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,231,1484035200"; d="scan'208";a="1117559828" Received: from gklab-246-019.igk.intel.com (HELO intel.com) ([10.217.246.19]) by fmsmga001.fm.intel.com with SMTP; 02 Mar 2017 06:14:24 -0800 Received: by intel.com (sSMTP sendmail emulation); Thu, 02 Mar 2017 17:08:17 +0100 From: Kuba Kozak To: dev@dpdk.org Cc: Kuba Kozak Date: Thu, 2 Mar 2017 17:07:51 +0100 Message-Id: <1488470875-26716-1-git-send-email-kubax.kozak@intel.com> X-Mailer: git-send-email 1.9.1 Subject: [dpdk-dev] [PATCH 0/4] extend API to retriving xstats by group and xstats by name 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: Thu, 02 Mar 2017 14:14:29 -0000 Added three new functions to API: rte_eth_xstats_get_by_name(), rte_eth_xstats_get_by_group(), rte_eth_xstats_get_names_by_group(). Extension of the 'rte_igb_xstats_name_off' structure with additional field 'group_mask'. For each xstats there is now specified group (e.g. TX_GROUP), one xstatistic can be in several groups. To implement new functionality of retriving xstats by group on e1000 driver level, there are two functions added: eth_igb_xstats_get_by_group() and eth_igb_xstats_get_names_by_group(), on ixgbe driver level, there are new functions added: ixgbe_dev_xstats_get_by_group() and ixgbe_dev_xstats_get_names_by_group() Extended functionality of proc_info application: --xstats-name NAME: to display single xstat value by NAME --xstats-group GROUPNAME: to display group of xstats by GROUPNAME Jacek Piasecki (4): ethdev: add retrieving xstats by group and xstats by name net/e1000: add grouping of xstats for e1000 driver net/ixgbe: add grouping of xstats for ixgbe driver app/proc_info: add support for xstats-name and xstats-group app/proc_info/main.c | 112 +++++++- drivers/net/e1000/igb_ethdev.c | 268 +++++++++++++----- drivers/net/ixgbe/ixgbe_ethdev.c | 586 +++++++++++++++++++++++++++++++-------- lib/librte_ether/rte_ethdev.c | 310 ++++++++++++++++++++- lib/librte_ether/rte_ethdev.h | 105 ++++++- 5 files changed, 1193 insertions(+), 188 deletions(-) -- 1.9.1