From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] ethdev: check number of queues less than RTE_ETHDEV_QUEUE_STAT_CNTRS Date: Thu, 10 Nov 2016 15:42:14 +0100 Message-ID: <3059112.zVgrzqmBCq@xps13> References: <1478786449-44745-1-git-send-email-alejandro.lucero@netronome.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, Bert van Leeuwen To: Alejandro Lucero Return-path: Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) by dpdk.org (Postfix) with ESMTP id DD354558C for ; Thu, 10 Nov 2016 15:42:15 +0100 (CET) Received: by mail-wm0-f45.google.com with SMTP id u144so53108937wmu.1 for ; Thu, 10 Nov 2016 06:42:15 -0800 (PST) In-Reply-To: <1478786449-44745-1-git-send-email-alejandro.lucero@netronome.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2016-11-10 14:00, Alejandro Lucero: > From: Bert van Leeuwen > > A device can have more than RTE_ETHDEV_QUEUE_STAT_CNTRS queues which > is used inside struct rte_eth_stats. Ideally, DPDK should be built with > RTE_ETHDEV_QUEUE_STAT_CNTRS to the maximum number of queues a device > can support, 65536, as uint16_t is used for keeping those values for > RX and TX. But of course, having such big arrays inside struct rte_eth_stats > is not a good idea. RTE_ETHDEV_QUEUE_STAT_CNTRS come from a limitation in Intel devices. They have limited number of registers to store the stats per queue. > Current default value is 16, which could likely be changed to 32 or 64 > without too much opposition. And maybe it would be a good idea to modify > struct rte_eth_stats for allowing dynamically allocated arrays and maybe > some extra fields for keeping the array sizes. Yes and? what is your issue exactly? with which device? Please explain the idea brought by your patch.