From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Qiu, Michael" Subject: Re: [dpdk-dev, PATCHv5, 1/8] ethdev: add new API to retrieve RX/TX queue information Date: Tue, 20 Oct 2015 07:53:31 +0000 Message-ID: <533710CFB86FA344BFBF2D6802E6028621B4DED5@SHSMSX101.ccr.corp.intel.com> References: <1443729293-20753-2-git-send-email-konstantin.ananyev@intel.com> <561E3EF2.1040507@6wind.com> <2601191342CEEE43887BDE71AB97725836AAF6E6@irsmsx105.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable To: "Ananyev, Konstantin" , Amine Kherbouche , "dev@dpdk.org" Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 0938491AA for ; Tue, 20 Oct 2015 09:53:40 +0200 (CEST) Content-Language: en-US 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" On 2015/10/14 19:50, Ananyev, Konstantin wrote:=0A= > Hi Amine,=0A= >=0A= >> -----Original Message-----=0A= >> From: Amine Kherbouche [mailto:amine.kherbouche@6wind.com]=0A= >> Sent: Wednesday, October 14, 2015 12:40 PM=0A= >> To: Ananyev, Konstantin; dev@dpdk.org=0A= >> Subject: Re: [dpdk-dev, PATCHv5, 1/8] ethdev: add new API to retrieve RX= /TX queue information=0A= >>=0A= >>=0A= >>=0A= >> Hi Konstantin=0A= >>> +/**=0A= >>> + * Ethernet device RX queue information structure.=0A= >>> + * Used to retieve information about configured queue.=0A= >>> + */=0A= >>> +struct rte_eth_rxq_info {=0A= >>> + struct rte_mempool *mp; /**< mempool used by that queue. */=0A= >>> + struct rte_eth_rxconf conf; /**< queue config parameters. */=0A= >>> + uint8_t scattered_rx; /**< scattered packets RX supported. */= =0A= >>> + uint16_t nb_desc; /**< configured number of RXDs. */=0A= >> Here i need two more fields in this struct :=0A= >> uint16_t free_desc : for free queue descriptors=0A= >> uint16_t used_desc : for used queue descriptors=0A= =0A= But as I know it is different all the time, am I right?=0A= If yes, I don't know what's the value of this field.=0A= =0A= Thanks,=0A= Michael=0A= =0A= =0A= >>> +} __rte_cache_aligned;=0A= >=0A= =0A=