From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id D30AB1DB1 for ; Fri, 1 Jul 2016 11:15:30 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 01 Jul 2016 02:15:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,556,1459839600"; d="scan'208";a="986964880" Received: from rhorton-mobl.ger.corp.intel.com (HELO [163.33.228.169]) ([163.33.228.169]) by orsmga001.jf.intel.com with ESMTP; 01 Jul 2016 02:15:28 -0700 To: Thomas Monjalon References: <5773EB79.1090509@6wind.com> <8870166.MVVViF2IlQ@xps13> Cc: dev@dpdk.org, Olivier MATZ From: Remy Horton Organization: Intel Shannon Limited Message-ID: <99e03d76-b896-2146-274c-2f3d83eee899@intel.com> Date: Fri, 1 Jul 2016 10:15:27 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: <8870166.MVVViF2IlQ@xps13> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] xstats performance X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jul 2016 09:15:31 -0000 On 29/06/2016 17:40, Thomas Monjalon wrote: [..] > I don't think it is possible to standardize stats ids, for two reasons: > - it is hard to maintain and avoid conflicts between drivers > - the drivers would have to lookup the names which degrades performance I designed it that way to keep flexibility down the line rather than specifically for the above use-case. > I think the idea of Olivier would improve the performance of stats retrieval, > which was the idea of this rework :) > Unfortunately we need someone available to fix it quickly for RC2. For all the current drivers xstats_names[idx].id==idx so it would just involve removing the references to the id field and updating the documentation. Complication is coordinating with QLogic for the bnx2x & qede xstats patches. ..Remy