From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 55E4AA2F for ; Thu, 27 Apr 2017 16:43:58 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Apr 2017 07:43:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,384,1488873600"; d="scan'208";a="79639672" Received: from unknown ([10.103.103.28]) by orsmga002.jf.intel.com with SMTP; 27 Apr 2017 07:43:54 -0700 Received: by (sSMTP sendmail emulation); Thu, 27 Apr 2017 16:43:12 +0200 From: Michal Jastrzebski To: dev@dpdk.org Cc: harry.van.haaren@intel.com, deepak.k.jain@intel.com, Kuba Kozak Date: Thu, 27 Apr 2017 16:42:34 +0200 Message-Id: <20170427144240.10188-1-michalx.k.jastrzebski@intel.com> X-Mailer: git-send-email 2.12.2 Subject: [dpdk-dev] [PATCH v1 0/6] 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: Thu, 27 Apr 2017 14:43:59 -0000 From: Kuba Kozak This patchset fixes following patches: commit ea85e7d711b6 ("ethdev: retrieve xstats by ID") commit a954495245c4 ("ethdev: get xstats ID by name") commit 1223608adb9b ("app/proc-info: support xstats by ID") commit 25e38f09af9c ("net/e1000: support xstats by ID") commit 923419333f5a ("net/ixgbe: support xstats by ID") This patch addresses some API concerns with the xstat patchset applied in DPDK 17.05 RC2. For clarity the first patch reverts all changes from the above commits. The subsequent patches extends the xstats API in ethdev library to allow grouping of stats logically so they can be retrieved per logical grouping managed by the application. The patchset adds new functions rte_eth_xstats_get_names_by_id() and rte_eth_xstats_get_by_id() to use a new list of arguments: array of ids and array of values. It also introduces a new function, rte_eth_xstats_get_id_by_name(), to retrieve xstats ids by their names. It also extends the functionality of the proc_info application: --xstats-name NAME: to display single xstat value by NAME Finally the test-pmd application is updated to use new API. Kuba Kozak (6): ethdev: revert patches extending xstats API in ethdev ethdev: retrieve xstats by ID ethdev: get xstats ID by name app/proc-info: support xstats by ID and by name net/e1000: support xstats by ID net/ixgbe: support xstats by ID app/proc_info/main.c | 12 +- app/test-pmd/config.c | 19 ++- doc/guides/prog_guide/poll_mode_drv.rst | 22 ++-- doc/guides/rel_notes/release_17_05.rst | 5 +- drivers/net/e1000/igb_ethdev.c | 26 ++-- drivers/net/ixgbe/ixgbe_ethdev.c | 25 ++-- lib/librte_ether/rte_ethdev.c | 224 +++++++++++++++++++++----------- lib/librte_ether/rte_ethdev.h | 175 ++++++++----------------- lib/librte_ether/rte_ether_version.map | 6 +- 9 files changed, 259 insertions(+), 255 deletions(-) -- 2.7.4