Re: error loading xdp program on virtio nic

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 2019/11/21 下午2:26, Jesper Dangaard Brouer wrote:
On Wed, 20 Nov 2019 21:05:48 -0700
David Ahern <dsahern@xxxxxxxxx> wrote:

On 11/20/19 8:54 PM, Jason Wang wrote:
The current error message is:
    virtio_net: Too few free TX rings available
again, looking for some libvirt setting for the vm create.
Make sure you have sufficient queues, e.g if you N vcpus with multiqueue
enabled, you need 2*N queues for virtio-net.
yep, that did the trick and now I can attach xdp programs. Thanks for
the help.
How did you configure number of queues in libbvirt?


By specifying queues property like:

<devices>

  <interface type='network'>
    <source network='default'/>
    <target dev='vnet1'/>
    <model type='virtio'/>
    <driver name='vhost' txmode='iothread' ioeventfd='on' event_idx='off' queues='5' rx_queue_size='256' tx_queue_size='256'>       <host csum='off' gso='off' tso4='off' tso6='off' ecn='off' ufo='off' mrg_rxbuf='off'/>
      <guest csum='off' tso4='off' tso6='off' ecn='off' ufo='off'/>
    </driver>
    </interface>
</devices>


More information is here: https://libvirt.org/formatdomain.html

Thanks





[Index of Archives]     [Linux Networking Development]     [Fedora Linux Users]     [Linux SCTP]     [DCCP]     [Gimp]     [Yosemite Campsites]

  Powered by Linux