From mboxrd@z Thu Jan 1 00:00:00 1970 From: Amine Kherbouche Subject: [dpdk-dev, PATCHv6 2/6] testpmd: enhance the command to display RX/TX queue information Date: Tue, 20 Oct 2015 00:06:20 +0200 Message-ID: <1445292384-19815-3-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 To: dev@dpdk.org Return-path: Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com [209.85.212.170]) by dpdk.org (Postfix) with ESMTP id 5F8588E79 for ; Tue, 20 Oct 2015 00:06:55 +0200 (CEST) Received: by wijp11 with SMTP id p11so20122302wij.0 for ; Mon, 19 Oct 2015 15:06:55 -0700 (PDT) In-Reply-To: <1445292384-19815-1-git-send-email-amine.kherbouche@6wind.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" Display the additional information added in rte_eth_txq_info struct for queue descriptors. Signed-off-by: Amine Kherbouche --- app/test-pmd/config.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index aad2ab6..761519f 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -321,7 +321,9 @@ rx_queue_infos_display(portid_t port_id, uint16_t queue_id) (qinfo.conf.rx_deferred_start != 0) ? "on" : "off"); printf("\nRX scattered packets: %s", (qinfo.scattered_rx != 0) ? "on" : "off"); - printf("\nNumber of RXDs: %hu", qinfo.nb_desc); + printf("\nNumber of Total RXDs: %hu", qinfo.nb_desc); + printf("\nNumber of Used RXDs: %hu",qinfo.used_desc); + printf("\nNumber of Free RXDs: %hu",qinfo.free_desc); printf("\n"); } @@ -351,7 +353,9 @@ tx_queue_infos_display(portid_t port_id, uint16_t queue_id) printf("\nTX flags: %#x", qinfo.conf.txq_flags); printf("\nTX deferred start: %s", (qinfo.conf.tx_deferred_start != 0) ? "on" : "off"); - printf("\nNumber of TXDs: %hu", qinfo.nb_desc); + printf("\nNumber of Total TXDs: %hu", qinfo.nb_desc); + printf("\nNumber of Used TXDs: %hu",qinfo.used_desc); + printf("\nNumber of Free TXDs: %hu",qinfo.free_desc); printf("\n"); } -- 1.7.10.4