From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:52769 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726230AbfKUHCf (ORCPT ); Thu, 21 Nov 2019 02:02:35 -0500 Subject: Re: error loading xdp program on virtio nic References: <89f56317-5955-e692-fcf0-ee876aae068b@redhat.com> <3dc7b9d8-bcb2-1a90-630e-681cbf0f1ace@gmail.com> <18659bd0-432e-f317-fa8a-b5670a91c5b9@redhat.com> <20191121072625.3573368f@carbon> From: Jason Wang Message-ID: <4686849f-f3b8-dd1d-0fe4-3c176a37b67a@redhat.com> Date: Thu, 21 Nov 2019 15:02:25 +0800 MIME-Version: 1.0 In-Reply-To: <20191121072625.3573368f@carbon> Content-Language: en-US Sender: xdp-newbies-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable To: Jesper Dangaard Brouer , David Ahern Cc: "xdp-newbies@vger.kernel.org" On 2019/11/21 =E4=B8=8B=E5=8D=882:26, Jesper Dangaard Brouer wrote: > On Wed, 20 Nov 2019 21:05:48 -0700 > David Ahern wrote: > >> On 11/20/19 8:54 PM, Jason Wang wrote: >>>> The current error message is: >>>> =C2=A0=C2=A0 virtio_net: Too few free TX rings available >>>> again, looking for some libvirt setting for the vm create. >>>> =20 >>> Make sure you have sufficient queues, e.g if you N vcpus with multiqueu= e >>> 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: =C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 More information is here: https://libvirt.org/formatdomain.html Thanks