From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 9817D2B9B for ; Mon, 3 Apr 2017 12:15:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=intel; t=1491214545; x=1522750545; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=p2Ih0yu57JVIEDa6PVu7jMsV/KtS7PA4rnnvKaxuYmI=; b=lnR9/KpCsNrnoerlWijITgsMv3W4KvnIHvnnahzf+oQezzPg1lLn3UaM RYXmC1xAO2856N6UjFDa2VsYjpDJ+w==; Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Apr 2017 03:15:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,269,1486454400"; d="scan'208";a="1130221132" Received: from gklab-246-019.igk.intel.com (HELO intel.com) ([10.217.246.19]) by fmsmga001.fm.intel.com with SMTP; 03 Apr 2017 03:15:40 -0700 Received: by intel.com (sSMTP sendmail emulation); Mon, 03 Apr 2017 14:10:11 +0200 From: Jacek Piasecki To: dev@dpdk.org Cc: harry.van.haaren@intel.com, Jacek Piasecki Date: Mon, 3 Apr 2017 14:09:50 +0200 Message-Id: <1491221393-10305-1-git-send-email-jacekx.piasecki@intel.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1490910640-244285-2-git-send-email-michalx.k.jastrzebski@intel.com> References: <1490910640-244285-2-git-send-email-michalx.k.jastrzebski@intel.com> Subject: [dpdk-dev] [PATCH v3 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: Mon, 03 Apr 2017 10:15:46 -0000 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. 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): add new xstats API retrieving by id add new xstats API id support for e1000 add new xstats API id support for ixgbe app/proc_info/main.c | 148 +++++++++++- app/test-pmd/config.c | 19 +- drivers/net/e1000/igb_ethdev.c | 92 ++++++- drivers/net/ixgbe/ixgbe_ethdev.c | 179 ++++++++++++++ lib/librte_ether/Makefile | 2 +- lib/librte_ether/rte_ethdev.c | 422 +++++++++++++++++++++++++-------- lib/librte_ether/rte_ethdev.h | 176 +++++++++++++- lib/librte_ether/rte_ether_version.map | 12 + 8 files changed, 915 insertions(+), 135 deletions(-) -- 1.9.1