From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wj0-f178.google.com (mail-wj0-f178.google.com [209.85.210.178]) by dpdk.org (Postfix) with ESMTP id 2C7D52C07 for ; Mon, 5 Dec 2016 13:53:57 +0100 (CET) Received: by mail-wj0-f178.google.com with SMTP id tg4so34024989wjb.1 for ; Mon, 05 Dec 2016 04:53:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=26olMXiRabTIS6zoX5RqZEKYuMTtMqyookpY9Cd5vgA=; b=uA73y3nmOLMF2SvicUla6hIos8lpzTpbgF4s/MxFF747hFOtjWvVRCJ/q5vgmksKs/ NtEu9frnvjCOwkCF2r+1Zfn77WSqD7N9SIPM9x1PbCxPOlVVXeRUadXPpcLJ1RTJHYbV Y3P6aGb0ZNAmbwW05BipwS497Q/MqnKpuwyv9Ic7YJmQ/vnwM9f9D8gw1sbyJUcEEh4R kbWuRPStsL9OS1EkwJBV3bdyuO60B9pqXNtX0fxe2TpXsDgXQH++E6FrHEXsuxIg1zRZ E4G8bDtjt3dznAIKM3isnQsyyPFTDdQqCx5DIUJ19OHZDJliIw+lNZfwtmGokUx0ZkKZ xptw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=26olMXiRabTIS6zoX5RqZEKYuMTtMqyookpY9Cd5vgA=; b=Swb/sy8iUJthsQz8BYUvXJJaccdJSFU0cmhoit6Qna3lypzcW6UaHJcyqqTAgOeewP /y5ICbLrMyt92ZQUXns+5UeGq1nGKtUNOpKBIkvUB6XAuV5/jb5RA0fIy2iAC3GnJrsP h8ezUjY6jtCth6bsJq9rmUq+nKqWbhyA30R9G8fS411guYrhYufdwm+k0bxSNjnnDE18 a1zI8aGcPruKAJPaMM0GZDGTKmFTZhrAcgRTjT3HnE8KBI7DcNa4NSCLO4G7QMGwJnpV DtfOezDvNPkStWxqbe2OMmclywg3Gx00rRjChINCKmlI0cqkB0l/Min1vOrsc3uVfrhj zAMQ== X-Gm-Message-State: AKaTC02ek5YSyvFq98VUatd8e0L2ktC7TI5NspJNcklXIWlvXK4FXoE2xFQ8T8YROxBIAJg8 X-Received: by 10.194.222.169 with SMTP id qn9mr49243471wjc.62.1480942436819; Mon, 05 Dec 2016 04:53:56 -0800 (PST) Received: from platinum (2a01cb0c03c651000226b0fffeed02fc.ipv6.abo.wanadoo.fr. [2a01:cb0c:3c6:5100:226:b0ff:feed:2fc]) by smtp.gmail.com with ESMTPSA id d184sm2304wmd.8.2016.12.05.04.53.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 05 Dec 2016 04:53:56 -0800 (PST) Date: Mon, 5 Dec 2016 13:53:54 +0100 From: Olivier Matz To: Alejandro Lucero , dev@dpdk.org Cc: Bert van Leeuwen , thomas.monjalon@6wind.com Message-ID: <20161205135354.4aaa789b@platinum> In-Reply-To: <1480006746.31853.14.camel@6wind.com> References: <1479722378-23959-1-git-send-email-alejandro.lucero@netronome.com> <1480006746.31853.14.camel@6wind.com> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v2] ethdev: check number of queues less than RTE_ETHDEV_QUEUE_STAT_CNTRS X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2016 12:53:57 -0000 On Thu, 24 Nov 2016 17:59:06 +0100, Olivier Matz wrote: > Hi, > > On Mon, 2016-11-21 at 09:59 +0000, Alejandro Lucero wrote: > > 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")