DPDK usage discussions
 help / color / mirror / Atom feed
From: Amir Solav <amir_so@rad.com>
To: "users@dpdk.org" <users@dpdk.org>
Subject: [dpdk-users] DPDK on PF and SR-IOV
Date: Thu, 7 Feb 2019 14:03:31 +0000	[thread overview]
Message-ID: <AM0PR03MB4820B050DC74CF4D5769E1D196680@AM0PR03MB4820.eurprd03.prod.outlook.com> (raw)

Hello,

I'm trying to set up PF using DPDK in addition to SR-IOV connection to the VMs.
Currently (before enabling SR-IOV VFs ) all interfaces is using  DPDK VFIO-PCI driver.
I've enabled below patch to the VFIO driver in order to create VF on the Physical port:
https://patchwork.kernel.org/patch/10103353/
The problem is that once I bind VFIO driver to the created VF I expect to see new device node /dev/vfio/X with the relevant IOMMU group.
In my setup this device note isn't created therefore I can't connect the VF to VM using Libvirt which is looking for this file.
The sequence I did is:
#Create 4 VF on the PF
echo '4' > /sys/bus/pci/devices/0000\:06\:00.0/sriov_numvfs
#Unbind the 4 VF from the default driver
echo "0000:06:10.0" > /sys/bus/pci/drivers/ixgbevf/unbind
echo "0000:06:10.2" > /sys/bus/pci/drivers/ixgbevf/unbind
echo "0000:06:10.4" > /sys/bus/pci/drivers/ixgbevf/unbind
echo "0000:06:10.6" > /sys/bus/pci/drivers/ixgbevf/unbind
#Bind the VF to VFIO-PCI driver
echo "8086 15c5" > /sys/bus/pci/drivers/vfio-pci/new_id
#After this command I expect to see new /dev/vfio/X file for each VF.
I can see that each VF is in different IOMMU group.
What I'm missing here ?
Is there any other option to connect VM with SR-IOV once using DPDK driver on the PF ?
Regards,
Amir.

                 reply	other threads:[~2019-02-07 14:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=AM0PR03MB4820B050DC74CF4D5769E1D196680@AM0PR03MB4820.eurprd03.prod.outlook.com \
    --to=amir_so@rad.com \
    --cc=users@dpdk.org \
    /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).