From: Olivier Matz Date: Thu, 14 Dec 2017 14:33:18 +0000 (+0100) Subject: app/testpmd: dump more port info X-Git-Tag: spdx-start~754 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=6191211f1d640b89cd20f839704a7fa20c7f28a3;p=dpdk.git app/testpmd: dump more port info Display some more useful information from dev_info when calling "show port info ". Signed-off-by: Olivier Matz Reviewed-by: Ferruh Yigit --- diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index cd2ac11645..b2dbd5647b 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -522,6 +522,16 @@ port_infos_display(portid_t port_id) } } + printf("Minimum size of RX buffer: %u\n", dev_info.min_rx_bufsize); + printf("Maximum configurable length of RX packet: %u\n", + dev_info.max_rx_pktlen); + if (dev_info.max_vfs) + printf("Maximum number of VFs: %u\n", dev_info.max_vfs); + if (dev_info.max_vmdq_pools) + printf("Maximum number of VMDq pools: %u\n", + dev_info.max_vmdq_pools); + + printf("Current number of RX queues: %u\n", dev_info.nb_rx_queues); printf("Max possible RX queues: %u\n", dev_info.max_rx_queues); printf("Max possible number of RXDs per queue: %hu\n", dev_info.rx_desc_lim.nb_max); @@ -529,6 +539,7 @@ port_infos_display(portid_t port_id) dev_info.rx_desc_lim.nb_min); printf("RXDs number alignment: %hu\n", dev_info.rx_desc_lim.nb_align); + printf("Current number of TX queues: %u\n", dev_info.nb_tx_queues); printf("Max possible TX queues: %u\n", dev_info.max_tx_queues); printf("Max possible number of TXDs per queue: %hu\n", dev_info.tx_desc_lim.nb_max);