From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] doc: announce xstats api change for 16.07 Date: Wed, 06 Apr 2016 11:22:10 +0200 Message-ID: <27546869.TpcjJvEkXE@xps13> References: <1459879089-3430-1-git-send-email-harry.van.haaren@intel.com> <1955261.zYXyGahjVu@xps13> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: "'David Harton (dharton)'" , dev@dpdk.org, "Tahhan, Maryam" , olivier.matz@6wind.com To: "Van Haaren, Harry" Return-path: Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) by dpdk.org (Postfix) with ESMTP id 487DE2956 for ; Wed, 6 Apr 2016 11:23:49 +0200 (CEST) Received: by mail-wm0-f42.google.com with SMTP id 191so51046049wmq.0 for ; Wed, 06 Apr 2016 02:23:49 -0700 (PDT) In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2016-04-06 09:02, Van Haaren, Harry: > + David Harton, > > > From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com] > > Subject: Re: [dpdk-dev] [PATCH] doc: announce xstats api change for 16.07 > > 2016-04-05 18:58, Harry van Haaren: > > > +* ABI change is planned for the xstats API > > > Have you already submitted a RFC patch to let us have an opinion on the change? > > We need, at least, to see the structure changes. > > This API break is to allow changing the API of xstats given the conversation that was on-list, as discussed in this thread: > > http://thread.gmane.org/gmane.comp.networking.dpdk.devel/31728/focus=31903 > > The issue we are going to fix is that currently PMDs copy strings when retrieving statistics, which causes unnecessary overhead. The implementation is not decided yet, but using an int->value mapping seems logical. I am not sure performance is so much critical when retrieving statistics. The extended stats can be infinitely extended. So a string identifier seems a lot more natural. I do not agree to add a new numeric identifier in the API each time a driver wants to report a specific statistic for debugging purpose. > The rte_eth_xstats struct size may be modified, and the API to retrieve statistics will be modified.