[v3,3/4] app/procinfo: add Rx buffer size to --show-port

Message ID 1598685199-1630-4-git-send-email-tangchengchang@huawei.com (mailing list archive)
State Superseded, archived
Delegated to: Ferruh Yigit
Headers
Series [RFC] ethdev: add a field for rte_eth_rxq_info |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Chengchang Tang Aug. 29, 2020, 7:13 a.m. UTC
  Add Rx buffer size to show_port function to display it in the port PMD
information so that the user can get the buffer length used by HW queue
of receiving packets.

Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
---
 app/proc-info/main.c | 2 ++
 1 file changed, 2 insertions(+)

--
2.7.4
  

Patch

diff --git a/app/proc-info/main.c b/app/proc-info/main.c
index abeca4a..e840dea 100644
--- a/app/proc-info/main.c
+++ b/app/proc-info/main.c
@@ -711,11 +711,13 @@  show_port(void)
 			if (ret == 0) {
 				printf("\t  -- queue %d rx scatter %d"
 						" descriptors %d"
+						" rx buffer size %d"
 						" offloads 0x%"PRIx64
 						" mempool socket %d\n",
 						j,
 						queue_info.scattered_rx,
 						queue_info.nb_desc,
+						queue_info.rx_buf_size,
 						queue_info.conf.offloads,
 						queue_info.mp->socket_id);
 			}