[dpdk-dev] Need help to run test_pmd via sr-iov setup

zhi ma zhima2006 at yahoo.com
Thu Oct 12 17:30:25 CEST 2017


 

 Need help to run test_pmd via sr-iov setup
my steps:1. turn on intel vt in bios2. set "intel_iommu=on" in kernel boot parameter3. update host grub and reboot4. 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 5. 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 6. rmmod ixgbevf 7. start ubuntu 14.04 vm with KVM virt-manager, add two PCI host device (Virtual function devices) 8. run dpdk app --- test_pmd in vm (two ports connected back to back)    start tx_first    stop    no packets  9. if I run test_pmd inside host machine, it works fine. (lots of sent and received packets, 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>
  


More information about the dev mailing list