From mboxrd@z Thu Jan 1 00:00:00 1970 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) 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=+wBDE1rk5zyJxuSs3yul/7L36+rPJNlr1iljPRD0vCo=; b=aW0pQPy98p9NkMe1kIIX4qUF1UDFyy2t0tM9NqmIoPXffdLyhAF/Qo/yarBPwxbKdH 3yeHmf+5QjwPXGjFINanASor+d5CYUS/kWVjyrOsi7coc/nb3OyOsBvTBtnwc3uI0slO fSp9+tArs4J4eHGJa/ZgDxEELjPk6jTDXwgiV1EuD3vp1ecDvgmLhfGunJ6DuRx1novu iuE7JVTwacOySgexbiRXnCd2M5WjGhuf3EzSUZr0vV7nZHWCeeovmzoJM0ASENKXUQ+H vxaSkvFeAdHhVGJTr/BCcqASx/nuqhtkTOciEZ2jLdpGqnrjW2LzakiIPzJDVL4EV3Kv +4iw== 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=+wBDE1rk5zyJxuSs3yul/7L36+rPJNlr1iljPRD0vCo=; b=Db5LMXpyygv2Fc6K5zCRjf0pr1lhc7cFXLGxaRfLIDngaslxU90MtN45o5dukAWPgR zCe4s9rT4s4BK6bh6Ar9VMxZgE7nBO2Yr62gmNk8zs71PXV+tYEWJJbGCv3cn5rQ4D3n a4peCJL5+8yBSjNHOaQf1wl8g5lG7GpQ4feyeCxoC76O83WJYD+uhOveDL2/QLztmJGL uOQxCUeo3fyKBpW0IH8Mo5x6NkI0DDiYwg+qfgCgC5hl5i8SoviaQQkJV7TmV30cl0Lw MBUMOWubbCugESq0CIKAUg1p+CI31VY8TUlQTh1JXiOJuud/wjCt7Dw/q5FlwPYs0PRT Nyxg== X-Gm-Message-State: AKaTC00eWwOt7ZgEZb3sRBRRpYCD/V1ozyqPBEBXAd5/CXypbIRO2YKEFe4zQZvwbR+GPpSE X-Received: by 10.28.136.80 with SMTP id k77mr2610368wmd.57.1481030690573; Tue, 06 Dec 2016 05:24:50 -0800 (PST) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id 63sm4065441wmg.2.2016.12.06.05.24.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Dec 2016 05:24:49 -0800 (PST) From: Thomas Monjalon To: Alejandro Lucero , Bert van Leeuwen Cc: Olivier Matz , dev@dpdk.org Date: Tue, 06 Dec 2016 14:24:48 +0100 Message-ID: <2228966.rZFZ3sdO3q@xps13> User-Agent: KMail/4.14.10 (Linux/4.5.4-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <20161205135354.4aaa789b@platinum> 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-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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: Tue, 06 Dec 2016 13:24:51 -0000 > > > 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