Virtio_user for kernel interface.

David Marchand david.marchand at redhat.com
Mon Aug 28 10:30:35 CEST 2023


On Mon, Aug 28, 2023 at 10:07 AM Carlos de Souza Moraes Neto
<carlosmn at weg.net> wrote:
> I'm attempting to utilize virtio_user for packet transmission and reception via the kernel's network stack. I transmitted packets from a NIC to virtio_user0 and captured them on the tap0 interface. However, when trying to send a packet from tap0 (for instance, a basic ping) and route it to DPDK, the function rte_eth_rx_burst returns zero packets. My initialization is set as follows:
>         -l 0-4 --vdev=virtio_user0,path=/dev/vhost-net,queues=3,queue_size=1024.

Just an idea.
If you ask for 3 queue pairs, your application must poll packets from
all 3 rxqs, as the kernel may choose to send packets through any of
those queues.
Are you perhaps only polling one rxq?


-- 
David Marchand



More information about the users mailing list