Re: [PATCH] net/vhost: support queue info query

Maxime Coquelin <[email protected]>
Newsgroups org.dpdk.dev
Message-ID <CAO55cswmUXDz0VwghMQBBdiiK=5CLO2u8o3s33d3sdL+A1PsYQ@mail.gmail.com>
On Wed, Jul 1, 2026 at 8:36 AM Liangxing Wang <[email protected]> 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(+)
>
Reviewed-by: Maxime Coquelin <[email protected]>

Thanks,
Maxime
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.