From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=DJ2EZey/p/q1VNnqxQzJ3zAGc1YFZHbzzi7ZdhW8mM4=; b=MHU+W87nW0qzF5w/snVvGWbFNRUM9kqslMLbKtVnbxhtz31yuCTYxfkoWp8huFpTsP w7UFdHmXE7pzRhUObxKBxeWVWtzTRInzOypi9Ktf83z5OXBYLv4Dx3R8xbTQRbHA5DsU NdWb4+aU5WKrsR3AtfOoNzxmNBj/ykrg6WHGRzJG+OO0JANRxoD03p0oYaIOcSypMsKa sOrRI1GcvwMPLMPyS0wBKuc7bEHKbREkm5oGTgiM9HIBFKinYZ6HZbIfzg9owr6dFqTO bp5ifl8xaFFawUwQGlUi2OzITA4kMACBalpMf4LrvCt2dQjJOf8BDSFwbwHKcb5JrGhR aCYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=DJ2EZey/p/q1VNnqxQzJ3zAGc1YFZHbzzi7ZdhW8mM4=; b=WvDo1/B3XbqOQbwZtRrpp/ytbvIkTdtVmVbQsVRvFfKdS2eNp5DtSTAVtMPYR5Szzg mz39FqViOuuKiFCdppdOpQ20W9A/MrzWSierfA0GkcfsXWoD60QmgU9lFSgWnlOcRk5h eDx3Lh0Sh5TIC307lFZu0XqhwUGnATPcrSW6QXADwFMhtYJy7Q9R42Yz5TUe4UkxrQjj Yy3k/uPt4jCEIM2v/8JJrn7e3VCZ1fKA/LCqg3hrId9HE+E1rSYNDHHhfCx84rIDyydq cfwc/9qnwBsRRX2NiNGBgvZB5CvO1B3MspnhqhHH/8m/Bhzcxz3VSqTcboe1pAooVlCW sbdA== X-Gm-Message-State: ALyK8tLLQGh/mqn3CtJfcLLESKDPdJLyQJ20y69fqsefUOH7kS+ViKsXY55JqObDFQlltMCm X-Received: by 10.194.23.226 with SMTP id p2mr3754821wjf.120.1467381881139; Fri, 01 Jul 2016 07:04:41 -0700 (PDT) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id k3sm2051978wju.29.2016.07.01.07.04.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Jul 2016 07:04:39 -0700 (PDT) From: Thomas Monjalon To: Remy Horton Cc: dev@dpdk.org Date: Fri, 01 Jul 2016 16:04:39 +0200 Message-ID: <1620664.FjEQkVF3ed@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <1467379005-31547-1-git-send-email-remy.horton@intel.com> References: <1467379005-31547-1-git-send-email-remy.horton@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v1] eal: remove redundant id field in xstats name lookups 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 14:04:41 -0000 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