From mboxrd@z Thu Jan 1 00:00:00 1970 From: Remy Horton Subject: Re: [PATCH 1/2] ethdev: fix name index in xstats Api Date: Tue, 3 Jan 2017 10:03:52 +0000 Message-ID: References: <1481881454-17382-1-git-send-email-olivier.matz@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: stable@dpdk.org To: Olivier Matz , dev@dpdk.org, thomas.monjalon@6wind.com Return-path: In-Reply-To: <1481881454-17382-1-git-send-email-olivier.matz@6wind.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Been away, hence the somewhat late review.. On 16/12/2016 09:44, Olivier Matz wrote: [..] > Today, each 'id' returned by rte_eth_xstats_get() is equal to the index > in the returned array, making this value useless. It also prevents a > driver from having different indexes for names and value, like in the > example below: My original intention was to give free reign over what id numbers are used, but for reasons I've now forgotten the implementation ended up making everything sequential. > CC: stable@dpdk.org > Fixes: bd6aa172cf35 ("ethdev: fetch extended statistics with integer ids") > > Signed-off-by: Olivier Matz Acked-by: Remy Horton