[RFC,v2,3/3] app/testpmd: Add RX buffer size dispaly in queue info querry
diff mbox series

Message ID 1595399890-27300-4-git-send-email-tangchengchang@huawei.com
State Superseded
Delegated to: Ferruh Yigit
Headers show
  • add rx buffer size for rte_eth_rxq_info
Related show


Context Check Description
ci/Intel-compilation success Compilation OK
ci/checkpatch warning coding style issues

Commit Message

Chengchang Tang July 22, 2020, 6:38 a.m. UTC
Add RX buffer size to queue info querry cmd so that the user can get the
buffer length used by hw queue for receiving packets.

Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
 app/test-pmd/config.c | 1 +
 1 file changed, 1 insertion(+)


diff mbox series

diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c
index 30bee33..da2f837 100644
--- a/app/test-pmd/config.c
+++ b/app/test-pmd/config.c
@@ -452,6 +452,7 @@  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("\nRX Buffer size: %hu", qinfo.rx_buf_size);
 	printf("\nNumber of RXDs: %hu", qinfo.nb_desc);

 	if (rte_eth_rx_burst_mode_get(port_id, queue_id, &mode) == 0)