From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2] ethdev: check number of queues less than RTE_ETHDEV_QUEUE_STAT_CNTRS Date: Tue, 06 Dec 2016 14:24:48 +0100 Message-ID: <2228966.rZFZ3sdO3q@xps13> References: <1479722378-23959-1-git-send-email-alejandro.lucero@netronome.com> <1480006746.31853.14.camel@6wind.com> <20161205135354.4aaa789b@platinum> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: Olivier Matz , dev@dpdk.org To: Alejandro Lucero , Bert van Leeuwen Return-path: Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by dpdk.org (Postfix) with ESMTP id 000D22BFF for ; Tue, 6 Dec 2016 14:24:50 +0100 (CET) Received: by mail-wm0-f46.google.com with SMTP id g23so128517170wme.1 for ; Tue, 06 Dec 2016 05:24:50 -0800 (PST) In-Reply-To: <20161205135354.4aaa789b@platinum> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > > > From: Bert van Leeuwen > > > > > > Arrays inside rte_eth_stats have size=RTE_ETHDEV_QUEUE_STAT_CNTRS. > > > Some devices report more queues than that and this code blindly uses > > > the reported number of queues by the device to fill those arrays up. > > > This patch fixes the problem using MIN between the reported number > > > of queues and RTE_ETHDEV_QUEUE_STAT_CNTRS. > > > > > > Signed-off-by: Alejandro Lucero > > > > > > > Reviewed-by: Olivier Matz > > Fixes: ce757f5c9a4d ("ethdev: new method to retrieve extended statistics") Applied, thanks