From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 12A96A0471 for ; Tue, 13 Aug 2019 05:11:27 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 67E681BE95; Tue, 13 Aug 2019 05:11:14 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id BBB2B1BE84 for ; Tue, 13 Aug 2019 05:11:11 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Aug 2019 20:11:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,379,1559545200"; d="scan'208";a="259997346" Received: from npg-dpdk-haiyue-1.sh.intel.com ([10.67.111.73]) by orsmga001.jf.intel.com with ESMTP; 12 Aug 2019 20:11:10 -0700 From: Haiyue Wang To: dev@dpdk.org Cc: Haiyue Wang Date: Tue, 13 Aug 2019 11:06:11 +0800 Message-Id: <1565665572-65495-3-git-send-email-haiyue.wang@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1565665572-65495-1-git-send-email-haiyue.wang@intel.com> References: <1565665572-65495-1-git-send-email-haiyue.wang@intel.com> Subject: [dpdk-dev] [RFC v2 2/3] testpmd: show the Rx/Tx burst description X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Add the 'Burst description' section into command 'show rxq|txq info ' to show the Rx/Tx burst description by new trace API. Signed-off-by: Haiyue Wang --- app/test-pmd/config.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index 1a5a5c1..52814ba 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -330,6 +330,7 @@ rx_queue_infos_display(portid_t port_id, uint16_t queue_id) struct rte_eth_rxq_info qinfo; int32_t rc; static const char *info_border = "*********************"; + char burst_info[128]; rc = rte_eth_rx_queue_info_get(port_id, queue_id, &qinfo); if (rc != 0) { @@ -354,6 +355,11 @@ rx_queue_infos_display(portid_t port_id, uint16_t queue_id) printf("\nRX scattered packets: %s", (qinfo.scattered_rx != 0) ? "on" : "off"); printf("\nNumber of RXDs: %hu", qinfo.nb_desc); + + if (rte_eth_trace_info_get(port_id, queue_id, ETH_TRACE_RX_BURST, + burst_info, sizeof(burst_info)) > 0) + printf("\nBurst description: %s\n", burst_info); + printf("\n"); } @@ -363,6 +369,7 @@ tx_queue_infos_display(portid_t port_id, uint16_t queue_id) struct rte_eth_txq_info qinfo; int32_t rc; static const char *info_border = "*********************"; + char burst_info[128]; rc = rte_eth_tx_queue_info_get(port_id, queue_id, &qinfo); if (rc != 0) { @@ -383,6 +390,11 @@ tx_queue_infos_display(portid_t port_id, uint16_t queue_id) printf("\nTX deferred start: %s", (qinfo.conf.tx_deferred_start != 0) ? "on" : "off"); printf("\nNumber of TXDs: %hu", qinfo.nb_desc); + + if (rte_eth_trace_info_get(port_id, queue_id, ETH_TRACE_TX_BURST, + burst_info, sizeof(burst_info)) > 0) + printf("\nBurst description: %s\n", burst_info); + printf("\n"); } -- 2.7.4