From mboxrd@z Thu Jan 1 00:00:00 1970 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) 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=it+tU4xYPmyeNuO1t8J6s2iT7phrDSg2rEKKDr6eXrs=; b=CzWPwgVLVIsBsAaJXqB11O6nEakl80sUINMBvcd4pl77679Ui1ay5NKHgy4LY8TgWy ngfok/cGAaeKozurnl7QvI8jq3n9bsp4+4LpMyssXkx6d+tWKbhYYgiBq14DF+fPduFn yzZcVr+JZX/YiCLwMvqaEMRA65EzHqSM3ko4v62TUjh/qr4pwoJndH4q8wBr8tm/BpoG sbXZqmdT0TPkDRv5nq+8PdkB4ZPWQtcioR8g6W0hFoRf2wmMmjmXvBwVUR6U50JAmrsR PqtLrJNDOkE0y2QT4WWyPDD7vVl28vlVzv3Lk/MdVplJnqawsOHV9yS3qORVqIzGSal4 BCYA== X-Gm-Message-State: ALoCoQkZU06UBrW7G6JeClWRQcKERE0E82d6qt9vowLWUAaUG+1VNlZCxm6O69HJxqf7AbNFPts8 X-Received: by 10.194.47.244 with SMTP id g20mr26003720wjn.124.1445292415272; Mon, 19 Oct 2015 15:06:55 -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.54 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Oct 2015 15:06:54 -0700 (PDT) From: Amine Kherbouche To: dev@dpdk.org Date: Tue, 20 Oct 2015 00:06:20 +0200 Message-Id: <1445292384-19815-3-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 2/6] testpmd: enhance the command to display 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: Mon, 19 Oct 2015 22:06:55 -0000 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