From: Stephen Hemminger <stephen@networkplumber.org>
To: Yasin CANER <yasin.caner@ulakhaberlesme.com.tr>
Cc: "users@dpdk.org" <users@dpdk.org>
Subject: Re: Virtio_user as Exception Path insted of rte_kni on virtio driver is possible
Date: Wed, 12 Apr 2023 08:01:37 -0700 [thread overview]
Message-ID: <20230412080137.366f0dd1@hermes.local> (raw)
In-Reply-To: <AM9P189MB155440101832F191CF963032B9969@AM9P189MB1554.EURP189.PROD.OUTLOOK.COM>
On Fri, 7 Apr 2023 13:49:47 +0000
Yasin CANER <yasin.caner@ulakhaberlesme.com.tr> wrote:
> Hello all,
>
> I would like to run a DPDK application on virtio driver that is in a Ubuntu-20 VM.
>
>
> 1. Can DPDK-22.11 create a virtio_user on virtio driver? Or is there a another way to create KNI? I could not create VF .
> 2. Is there a way to run virtio_user as Exception path via igb_uio instead of VFIO?
> 3. Or do i have to run via rte_kni?
Virtio has two sides, the host and guest side. Virtio_user has DPDK place the role of host
and the kernel device is the guest side. If running in a VM, the usual case is that
the virtio device is managed by the kernel (host side) and the DPDK application is using
the guest side.
>
> I try to follow VFIO guide to create VF but it doesnt work. There is no srvio support in virtio driver as expected.
>
> Best regards.
>
> This parts not possible to run
>
> echo 1 | sudo tee /sys/module/vfio_pci/parameters/enable_sriov
>
> echo 2 > /sys/bus/pci/devices/0000:86:00.0/sriov_numvfs
SRIOV VF is a host (not guest VM) side feature.
So the above lines don't make any sense.
> DPDK version 22.11
> Ubuntu 20.04.5
> 5.4.0-146-generic
> https://doc.dpdk.org/guides-22.11/howto/virtio_user_as_exception_path.html#virtio-user-as-exception-path
> 55. Tun|Tap Poll Mode Driver - Data Plane Development Kit 22.11.1 documentation (dpdk.org)<https://doc.dpdk.org/guides-22.11/nics/tap.html>
> https://doc.dpdk.org/guides-22.11/linux_gsg/linux_drivers.html#linux-gsg-linux-drivers
> https://docs.kernel.org/driver-api/vfio.html
>
> ethtool -i ens6
> driver: virtio_net
> version: 1.0.0
> firmware-version:
> expansion-rom-version:
> bus-info: 0000:00:06.0
> supports-statistics: yes
> supports-test: no
> supports-eeprom-access: no
> supports-register-dump: no
> supports-priv-flags: no
>
What is kernel log (dmesg) output?
prev parent reply other threads:[~2023-04-12 15:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-07 13:49 Yasin CANER
2023-04-12 15:01 ` Stephen Hemminger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230412080137.366f0dd1@hermes.local \
--to=stephen@networkplumber.org \
--cc=users@dpdk.org \
--cc=yasin.caner@ulakhaberlesme.com.tr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).