From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP; 20 Oct 2015 00:53:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,706,1437462000"; d="scan'208";a="815022741" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga001.fm.intel.com with ESMTP; 20 Oct 2015 00:53:36 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 20 Oct 2015 00:53:34 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.96]) by shsmsx102.ccr.corp.intel.com ([169.254.2.253]) with mapi id 14.03.0248.002; Tue, 20 Oct 2015 15:53:32 +0800 From: "Qiu, Michael" To: "Ananyev, Konstantin" , Amine Kherbouche , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [dpdk-dev, PATCHv5, 1/8] ethdev: add new API to retrieve RX/TX queue information Thread-Index: AQHRBnaFnIOzIeZtG0ufpF70JyN+YQ== 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> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [dpdk-dev, PATCHv5, 1/8] ethdev: add new API to retrieve RX/TX queue information X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Oct 2015 07:53:41 -0000 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=