On 7/1/26 8:14 AM, Liangxing Wang wrote:
Add Rx and Tx queue info callbacks to report the vhost-user vring
size as the queue descriptor number.

The vhost-user PMD does not use the descriptor count passed by
rte_eth_rx_queue_setup() and rte_eth_tx_queue_setup(). The actual queue
depth is negotiated with the virtio frontend and maintained by the
vhost library. Query the vhost vring and report its size through
rxq_info_get and txq_info_get.

With this change, testpmd using vhost-user PMD can display the correct
Rx and Tx queue descriptor number in the port start log.

Signed-off-by: Liangxing Wang <[email protected]>
---
  drivers/net/vhost/rte_eth_vhost.c | 38 +++++++++++++++++++++++++++++++
  1 file changed, 38 insertions(+)

Applied to next-virtio/for-next-net.

Thanks,
Maxime

Reply via email to