From mboxrd@z Thu Jan 1 00:00:00 1970 From: Amine Kherbouche Subject: Re: [dpdk-dev, PATCHv5, 1/8] ethdev: add new API to retrieve RX/TX queue information Date: Wed, 14 Oct 2015 13:39:30 +0200 Message-ID: <561E3EF2.1040507@6wind.com> References: <1443729293-20753-2-git-send-email-konstantin.ananyev@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit To: "Ananyev, Konstantin" , dev@dpdk.org Return-path: Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com [209.85.212.179]) by dpdk.org (Postfix) with ESMTP id 0B5C58D95 for ; Wed, 14 Oct 2015 13:39:47 +0200 (CEST) Received: by wicge5 with SMTP id ge5so96867118wic.0 for ; Wed, 14 Oct 2015 04:39:46 -0700 (PDT) In-Reply-To: <1443729293-20753-2-git-send-email-konstantin.ananyev@intel.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" Hi Konstantin > +/** > + * Ethernet device RX queue information structure. > + * Used to retieve information about configured queue. > + */ > +struct rte_eth_rxq_info { > + struct rte_mempool *mp; /**< mempool used by that queue. */ > + struct rte_eth_rxconf conf; /**< queue config parameters. */ > + uint8_t scattered_rx; /**< scattered packets RX supported. */ > + uint16_t nb_desc; /**< configured number of RXDs. */ Here i need two more fields in this struct : uint16_t free_desc : for free queue descriptors uint16_t used_desc : for used queue descriptors > +} __rte_cache_aligned; > + > +/** > + * Ethernet device TX queue information structure. > + * Used to retieve information about configured queue. > + */ > +struct rte_eth_txq_info { > + struct rte_eth_txconf conf; /**< queue config parameters. */ > + uint16_t nb_desc; /**< configured number of TXDs. */ And also here. > +} __rte_cache_aligned; > + > struct rte_eth_dev; How to add them without breaking API ? I would prefer to see them now, so I'll send an update on your patch series that i'll use this 2 more fields. The purpose will be to provide analysis of the usage of the RX and TX queues.