[PATCH] net/vhost: support queue info query

Maxime Coquelin maxime.coquelin at redhat.com
Mon Aug 17 11:29:46 CEST 2026


On Wed, Jul 1, 2026 at 8:36 AM Liangxing Wang <wangliangxing at hygon.cn> 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 <wangliangxing at hygon.cn>
> ---
>  drivers/net/vhost/rte_eth_vhost.c | 38 +++++++++++++++++++++++++++++++
>  1 file changed, 38 insertions(+)
>
Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>

Thanks,
Maxime



More information about the dev mailing list