From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f173.google.com (mail-wi0-f173.google.com [209.85.212.173]) by dpdk.org (Postfix) with ESMTP id 54DED8E6F for ; Tue, 20 Oct 2015 00:06:54 +0200 (CEST) Received: by wikq8 with SMTP id q8so19366919wik.1 for ; Mon, 19 Oct 2015 15:06:54 -0700 (PDT) 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:in-reply-to :references; bh=LPdu94MU8I9Ld3WbEUHoUXpCfJf6aahv5DUr71t5eoQ=; b=lzagIdiNkB2Wfftdmny5qFvdLJRBh9X7FdpYz0LZy2PMTdHsVTtduK5LMoMLHmOLoa iqMzmyXrwpIfpreZJkGimnditx9CCJxNZ4Q9rSWgrLfh7i1h5b5SxK3snHWo0YqCjkL8 nMYgPvAGXrgT8hQPAQergvtHIqabZobF1k1x4lTxhw190XeH7T9grUfJV0of+hBOYvW9 0CX10wDA7jd2PhUiS/jR81U1OKjOfLib20xAQf6P4d9J4h2cUjxd2Qxg85ggyTo1gQ70 0VE+p2xzVri2HPGF5wdyIumMkq3Ags0x6rcVZnIA0lqj2RTHgxPCZTl2XY+yCPZ6NZPd r1cQ== X-Gm-Message-State: ALoCoQmC2Wy9NAwCa1xvybzhcFmTOu5Oho6mMi3zbmGmPOMeldcJ/3e2OClAaOseTJTIv8eHaF9M X-Received: by 10.194.239.230 with SMTP id vv6mr34758461wjc.21.1445292414030; Mon, 19 Oct 2015 15:06:54 -0700 (PDT) Received: from griffon.dev.6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by smtp.gmail.com with ESMTPSA id jd7sm42620096wjb.19.2015.10.19.15.06.52 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Oct 2015 15:06:53 -0700 (PDT) From: Amine Kherbouche To: dev@dpdk.org Date: Tue, 20 Oct 2015 00:06:19 +0200 Message-Id: <1445292384-19815-2-git-send-email-amine.kherbouche@6wind.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1445292384-19815-1-git-send-email-amine.kherbouche@6wind.com> References: <1443729293-20753-2-git-send-email-konstantin.ananyev@intel.com> <1445292384-19815-1-git-send-email-amine.kherbouche@6wind.com> Cc: amine.kherbouche@6wind.com Subject: [dpdk-dev] [dpdk-dev, PATCHv6 1/6] ethdev: enhance rte_eth_(tx|rx)q_info struct 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: Mon, 19 Oct 2015 22:06:54 -0000 Add 2 fields in struct rte_eth_(tx|rx)q_info : - used_desc : for used queue descriptors - free_desc : for free queue descriptors for ability to query more information from queues. Signed-off-by: Amine Kherbouche --- lib/librte_ether/rte_ethdev.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h index 4d7b6f2..5fc86a0 100644 --- a/lib/librte_ether/rte_ethdev.h +++ b/lib/librte_ether/rte_ethdev.h @@ -874,6 +874,8 @@ struct rte_eth_rxq_info { struct rte_eth_rxconf conf; /**< queue config parameters. */ uint8_t scattered_rx; /**< scattered packets RX supported. */ uint16_t nb_desc; /**< configured number of RXDs. */ + uint16_t used_desc; /**< number of used descriptors */ + uint16_t free_desc; /**< number of free descriptors */ } __rte_cache_aligned; /** @@ -883,6 +885,8 @@ struct rte_eth_rxq_info { struct rte_eth_txq_info { struct rte_eth_txconf conf; /**< queue config parameters. */ uint16_t nb_desc; /**< configured number of TXDs. */ + uint16_t used_desc; /**< number of used descriptors */ + uint16_t free_desc; /**< number of free descriptors */ } __rte_cache_aligned; struct rte_eth_dev; -- 1.7.10.4