From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v1] eal: remove redundant id field in xstats name lookups Date: Fri, 01 Jul 2016 16:04:39 +0200 Message-ID: <1620664.FjEQkVF3ed@xps13> References: <1467379005-31547-1-git-send-email-remy.horton@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Remy Horton Return-path: Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by dpdk.org (Postfix) with ESMTP id 5D0072BAC for ; Fri, 1 Jul 2016 16:04:41 +0200 (CEST) Received: by mail-wm0-f51.google.com with SMTP id r201so30822210wme.1 for ; Fri, 01 Jul 2016 07:04:41 -0700 (PDT) In-Reply-To: <1467379005-31547-1-git-send-email-remy.horton@intel.com> 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-07-01 14:16, Remy Horton: > For all drivers that currently implement xstats, the id field in the > rte_eth_stats_name structure equals the entry's array index. This > patch eliminates the redundant id field as a direct index lookup is > faster than a search for the matching id field. > > Signed-off-by: Remy Horton Suggested-by: Olivier Matz Applied, thanks