From: zhi ma <zhima2006@yahoo.com>
To: "users@dpdk.org" <users@dpdk.org>
Subject: [dpdk-users] Need help to run test_pmd via sr-iov setup
Date: Wed, 11 Oct 2017 22:14:20 +0000 (UTC) [thread overview]
Message-ID: <824172623.112272.1507760060188@mail.yahoo.com> (raw)
In-Reply-To: <824172623.112272.1507760060188.ref@mail.yahoo.com>
Need help to run test_pmd via sr-iov setup
my steps:1. set "intel_iommu=on" in kernel boot parameter2. update host grub and reboot3. create VF: echo 1 > /sys/class/net/eth17/device sriov_numvfs echo 1 > /sys/class/net/eth18/device sriov_numvfs cat /sys/class/net/eth17/device sriov_numvfs 1 cat /sys/class/net/eth18/device sriov_numvfs 1 4. set Mac ip link set eth17 vf 0 mac aa:bb:cc:dd:00:00 ip link set eth18 vf 0 mac aa:bb:cc:dd:01:00 5. rmmod ixgbevf 6. start ubuntu 14.04 vm with KVM virt-manager, add two PCI host device (Virtual function devices) 7. run dpdk app --- test_pmd in vm (two ports connected back to back) start tx_first stop no packets 8. if I run test_pmd inside host machine, it works fine. (so those two ports connected fine)
INTEL X520-SR2 both host and guest vm running as ubuntu 14.04
any thing wrong with my setup? Please help
part of my virus xml <hostdev mode='subsystem' type='pci' managed='yes'> <driver name='vfio'/> <source> <address domain='0x0000' bus='0x09' slot='0x10' function='0x0'/> </source> <alias name='hostdev0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </hostdev>
<hostdev mode='subsystem' type='pci' managed='yes'> <driver name='vfio'/> <source> <address domain='0x0000' bus='0x09' slot='0x10' function='0x1'/> </source> <alias name='hostdev1'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> </hostdev>
parent reply other threads:[~2017-10-11 22:18 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <824172623.112272.1507760060188.ref@mail.yahoo.com>]
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=824172623.112272.1507760060188@mail.yahoo.com \
--to=zhima2006@yahoo.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).