4016d76b7c
This patch adds getting Rx/Tx queue fbd information in extended device statistics. The upper level application can get them by calling the rte_eth_xstats_get API function. The fbd registers of every Rx/Tx queue are very useful to identify the Rx/Tx bottleneck. 1. The Rx queue fbd register is the number of the unprocessed buffer descriptors which are waiting for driver to process; 2. The Tx queue fbd register is the number of the unprocessed buffer descriptors which are waiting for network engine hardware to process. As a result, we get the following output information in testpmd application by using the command "show port xstats" as below: rx_q0RX_QUEUE_FBD: 19 rx_q1RX_QUEUE_FBD: 18 tx_q0TX_QUEUE_FBD: 0 tx_q1TX_QUEUE_FBD: 0 Signed-off-by: Chengwen Feng <fengchengwen@huawei.com> Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com> Signed-off-by: Huisong Li <lihuisong@huawei.com>