DPDK usage discussions
 help / color / mirror / Atom feed
* Virtio_user as Exception Path insted of rte_kni on virtio driver is possible
@ 2023-04-07 13:49 Yasin CANER
  2023-04-12 15:01 ` Stephen Hemminger
  0 siblings, 1 reply; 2+ messages in thread
From: Yasin CANER @ 2023-04-07 13:49 UTC (permalink / raw)
  To: users

[-- Attachment #1: Type: text/plain, Size: 3140 bytes --]

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?



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



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


___
Yasin CANER
Lider Mühendis
Ulak Haberleşme A.Ş. Ankara


Bu elektronik posta ve onunla iletilen bütün dosyalar sadece göndericisi tarafından alması amaçlanan yetkili, gerçek ya da tüzel kişinin kullanımı içindir. Eğer söz konusu yetkili alıcı değilseniz, bu elektronik postanın içeriğini açıklamanız, kopyalamanız, yönlendirmeniz ve kullanmanız kesinlikle yasaktır ve bu elektronik postayı derhal silmeniz gerekmektedir. Şirketimiz bu mesajın içerdiği bilgilerin doğruluğu veya eksiksiz olduğu konusunda herhangi bir garanti vermemektedir. Bu nedenle, bu bilgilerin ne şekilde olursa olsun içeriğinden, iletilmesinden, alınmasından ve saklanmasından sorumlu değildir. Bu mesajdaki görüşler yalnızca gönderen kişiye aittir ve Şirketimizin görüşlerini yansıtmayabilir. Tarafınız ile paylaşılan kişisel verilerin, 6698 sayılı Kişisel Verilerin Korunması Kanununa uygun olarak işlenmesi gereğini bilginize sunarız.

________________________________

This e-mail and all files sent with it are intended for authorized natural or legal persons, who should be the only persons to open and read them. If you are not an authorized recipient, you are strictly prohibited from disclosing, copying, forwarding, and using the contents of this e-mail, and you must immediately delete it. Our company does not guarantee the accuracy or thoroughness of the information contained in this message. It is therefore in no way responsible for the content, sending, retrieval and storage of this information. The opinions contained in this message are the views of the sender only and do not necessarily reflect the views of the company. We would like to inform you that any personal data shared with you should be processed in accordance with the Law on Protection of Personal Data numbered 6698.

[-- Attachment #2: Type: text/html, Size: 9971 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Virtio_user as Exception Path insted of rte_kni on virtio driver is possible
  2023-04-07 13:49 Virtio_user as Exception Path insted of rte_kni on virtio driver is possible Yasin CANER
@ 2023-04-12 15:01 ` Stephen Hemminger
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2023-04-12 15:01 UTC (permalink / raw)
  To: Yasin CANER; +Cc: users

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?

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-04-12 15:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-07 13:49 Virtio_user as Exception Path insted of rte_kni on virtio driver is possible Yasin CANER
2023-04-12 15:01 ` Stephen Hemminger

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).