From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1B3A44233F for ; Mon, 9 Oct 2023 19:48:26 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D8137402B1; Mon, 9 Oct 2023 19:48:25 +0200 (CEST) Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) by mails.dpdk.org (Postfix) with ESMTP id A91C94026B for ; Mon, 9 Oct 2023 19:48:24 +0200 (CEST) Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-9a9f139cd94so804721766b.2 for ; Mon, 09 Oct 2023 10:48:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696873704; x=1697478504; darn=dpdk.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=2MmQjV1w57LLPo4h7twfI/PlbL2E8jcOx2B8aNKipwE=; b=bEWGtFVHasjro705DlOuBJVZbNYO4yyt4OYxGiXgsHwQLgr6pouPWG6A2ji2kb/yaA o/GA6WBalIMxmSTIMw+OTkNwT7B/Nd1RrbC+iahqdFl9mgGg8+zxHKqS40c+To9jFI7g S08vZb2EsTr6iUTAEHB99MwUSAtFerKk+GvsnbCV49UfAtO2V+/AoinU3V+g2TYaKRtn EOhD9iucJzUKaYy4hO674RTKtcDp1iB1CpobeNUjwq649r/0nxJBMRzVsGcg+yf7clNn nQxMRndNJ5PaJ1gNr2OAsgclkwr0cRKQaoOG9fbPtcGC3tl/uDAZnVOKQf4gtlTdi/P8 75SQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696873704; x=1697478504; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2MmQjV1w57LLPo4h7twfI/PlbL2E8jcOx2B8aNKipwE=; b=oTXtFrsKniSE6Q1Om7Yb7yq4pucMg3IgkrJsQ8a/9ek7GvXTOZ8hA7lwGvwOX8uVGz g+J0Ov5jBoipdki/IYn5luFDM9pwSDTduuiXXJaonef3uWx0pPpHl0rlmEIFhMfRCwOQ hn35dsVwFuWuQg3Fsu5GyW5XWI2V6V4ay06bs1NjHZo3y4oaskhrontWeVzJsZmAiInH 4IGDRHQmkpcHcCBBsVDjSg/boqQmvGydNUgkzwJ9/Dr0RIBe89cKssSqDPgew0DMfA+w Nxrh5+1bN9bwUlZ/JwZ6iMGmx9QwjfT/fzlsTqLAVOWHQ5bYFn3mGo7n6h0qy/iKeRFy dlpg== X-Gm-Message-State: AOJu0Yx+zaVHOLDmy1lHWThx5CKnmXIKOziUfbkR+e3On2KRiFV3F4q1 zr0/A5TdOH5x4VGjHgmOCUWC/THT0dW2Pl71dYUUuiN6BtnXqw== X-Google-Smtp-Source: AGHT+IGvABNC7cLNg4VMcRQkMOAjnT27sET65nuJgd0yCV1ksxbMIZhtqqdW9AZ9+vutU30DlC3kwacxp/aGKYTpBoQ= X-Received: by 2002:a17:906:530c:b0:9ae:3d8e:b635 with SMTP id h12-20020a170906530c00b009ae3d8eb635mr13984574ejo.24.1696873703878; Mon, 09 Oct 2023 10:48:23 -0700 (PDT) MIME-Version: 1.0 References: <20231002142133.27590624@hermes.local> <20231003090112.77cd1d2c@hermes.local> <8bb3d2ac-5676-3c9d-1da5-4b31f72eb143@redhat.com> In-Reply-To: <8bb3d2ac-5676-3c9d-1da5-4b31f72eb143@redhat.com> From: Antonio Di Bacco Date: Mon, 9 Oct 2023 19:48:12 +0200 Message-ID: Subject: Re: tap device speed To: Maxime Coquelin Cc: David Marchand , users@dpdk.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Hi Maxime, trying to follow the steps at the link provided: sage: =3D=3D=3D=3D=3D=3D 1. Probe required Kernel modules # modprobe vdpa # modprobe vduse # modprobe virtio-vdpa 2. Build (require vduse kernel headers to be available) # meson build # ninja -C build 3. Create a VDUSE device (vduse0) using Vhost PMD with testpmd (with 4 queue pairs in this example) # ./build/app/dpdk-testpmd --no-pci --vdev=3Dnet_vhost0,iface=3D/dev/vduse/vduse0,queues=3D4 --log-level=3D*:9 = -- -i --txq=3D4 --rxq=3D4 4. Attach the VDUSE device to the vDPA bus # vdpa dev add name vduse0 mgmtdev vduse I'm stuck at step 4, with an error: manderwo@fetgem01:~$ sudo vdpa dev add name vduse0 mgmtdev vduse kernel answers: Invalid argument manderwo@fetgem01:~$ vdpa mgmtdev show vduse: supported_classes block manderwo@fetgem01:~$ Do you know what could be wrong? Thank you in advance, Antonio. On Wed, Oct 4, 2023 at 9:50=E2=80=AFAM Maxime Coquelin wrote: > > > > On 10/4/23 09:42, Antonio Di Bacco wrote: > > Thank you for your info that are giving me the right heads up > > To experiment with VDUSE and share a virtual network interface (I > > don't have a physical NIC) between the Linux kernel and DPDK using > > VDUSE, I'm about to follow these steps: > > > > Load Required Kernel Modules: > > modprobe vduse > > Create /dev/vdpa0 device with: > > vdpa -d /dev/vdpa0 -n my_vdpa_driver -q queue_count > > > > I wonder which vdpa_driver should I use, I don't have a real NIC > > After having this vdpa0 interface up I can run my DPDK application: > > > > ./my_dpdk_app --vdev "net_vdpa0,iface=3D/dev/vdpa0" > > You will use the Vhost PMD in this case (alternative is to use the Vhost > API directly). > > Maybe I missed to add steps with Vhost PMD in my doc repo, I'll improve > it but in the mean time you can refer to the steps provided in the DPDK > VDUSE series cover letter: > https://inbox.dpdk.org/dev/7f72500a-5317-c66d-3f36-2fd65c874b47@redhat.co= m/T/ > > Please read the vduse documentation on my gitlab repo anyways, it > provides pointers on the missing Kernel patches (being upstreamed). > > Maxime > > > > Regards, > > Antonio. > > > > On Wed, Oct 4, 2023 at 9:08=E2=80=AFAM Maxime Coquelin > > wrote: > >> > >> > >> > >> On 10/4/23 08:17, David Marchand wrote: > >>> On Tue, Oct 3, 2023 at 6:01=E2=80=AFPM Stephen Hemminger > >>> wrote: > >>>> > >>>> On Tue, 3 Oct 2023 10:49:16 +0200 > >>>> Antonio Di Bacco wrote: > >>>> > >>>>> I understand, could we use another solution ? Like a memif interfa= ce > >>>>> in DPDK and libmemif in Linux? > >>>> > >>>> The issue is accessing kernel networking devices. Both virtio user > >>>> and XDP are faster for that. Memif is for doing process to process n= etworking. > >>> > >>> For dpdk <-> kernel, as you are mentioning virtio-user/vhost, let me > >>> add that there is some activity on this side, with VDUSE. > >>> > >>> Maxime is working on the VDUSE kernel and dpdk bits. > >>> He gave a talk about the current status during the summit and some > >>> performance numbers: > >>> https://dpdksummit2023.sched.com/event/1P9xA/vduse-performance-how-fa= st-is-it-maxime-coquelin-red-hat > >>> > >>> > >> > >> Thanks for sharing David. > >> I'd like just to add some more information on VDUSE if you want to > >> experiment with VDUSE, which is still under development: > >> https://gitlab.com/mcoquelin/vduse-doc > >> > >> Maxime > >> > > >