[dpdk-dev] Running DPDK in a VM

2016-08-04 Thread Vaibhav Sood
Hi!

I am looking at running DPDK in a VM, I would like to know if there are any 
limitations when doing this in terms of any DPDK features that do not work in a 
VM

The only post I came across for running DPDK in a VM is this: 
http://dpdk.org/ml/archives/dev/2013-September/000441.html

As an example, I tried to run the DPDK test suite (DTS, 
http://dpdk.org/doc/dts/gsg/ ) and see some tests fail saying virtio nics are 
not supported (Specifically, the ethertype_filter and five_tuple_filter tests 
give an error: FAILED ''virtio nic not support syn filter''). I would like to 
know if there are any limitations along these lines when running DPDK in VMs as 
compared to physical machines/NICS

Thanks!
Vaibhav


DISCLAIMER
==
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Ltd. does not accept any liability for virus infected mails.



[dpdk-dev] EAL: No probed ethernet devices

2016-08-12 Thread Vaibhav Sood
Hi,

I am running the DPDK test suite (DTS) in a VM and I see a lot of the test 
cases failing when running the testpmd application

I manually run the testpmd application as follows and I see this error:

test at pts00606-vm2:~/dpdk-16.04$ sudo 
./ppc_64-power8-linuxapp-gcc/app/testpmd -c 1 -n 4  -- -i --max-pkt-len=9000 
--port-topology=loop --txqflags=0
EAL: Detected lcore 0 as core 0 on socket 0
EAL: Detected lcore 1 as core 8 on socket 0
EAL: Detected lcore 2 as core 16 on socket 0
EAL: Detected lcore 3 as core 24 on socket 0
EAL: Support maximum 256 logical core(s) by configuration.
EAL: Detected 4 lcore(s)
EAL: Probing VFIO support...
EAL:   IOMMU type 1 (Type 1) is not supported
EAL:   IOMMU type 8 (No-IOMMU) is not supported
EAL:   no supported IOMMU extensions found!
EAL: VFIO support could not be initialized
EAL: Setting up physically contiguous memory...
EAL: Ask a virtual area of 0x100 bytes
EAL: Virtual area found at 0x3fff7f00 (size = 0x100)
EAL: Ask a virtual area of 0xf000 bytes
EAL: Virtual area found at 0x3ffe9000 (size = 0xf000)
EAL: Ask a virtual area of 0xf00 bytes
EAL: Virtual area found at 0x3fff7100 (size = 0xf00)
EAL: Requesting 256 pages of size 16MB from socket 0
EAL: TSC frequency is ~511999 KHz
EAL: Master lcore 0 is ready (tid=80815f20;cpuset=[0])
EAL: No probed ethernet devices
PANIC in main():
Empty set of forwarding logical cores - check the core mask supplied in the 
command parameters
5: [/lib/powerpc64le-linux-gnu/libc.so.6(__libc_start_main+0xb4) 
[0x3fff80473734]]
4: [/lib/powerpc64le-linux-gnu/libc.so.6(+0x23500) [0x3fff80473500]]
3: [./ppc_64-power8-linuxapp-gcc/app/testpmd(main+0x7f8) [0x100214d8]]
2: [./ppc_64-power8-linuxapp-gcc/app/testpmd(__rte_panic+0x80) [0x10020994]]
1: [./ppc_64-power8-linuxapp-gcc/app/testpmd(rte_dump_stack+0x40) [0x100881d0]]

My VM has 3 interfaces and as per the docs I loaded the uio_pci_generic driver 
and did a bind for one of the 3 interfaces

sudo modprobe uio_pci_generic

sudo ./tools/dpdk_nic_bind.py --bind=uio_pci_generic :00:05.0

test at pts00606-vm2:~/dpdk-16.04$ ./tools/dpdk_nic_bind.py --status

Network devices using DPDK-compatible driver

:00:05.0 'Virtio network device' drv=uio_pci_generic unused=vfio-pci

Network devices using kernel driver
===
:00:01.0 'Virtio network device' if= drv=virtio-pci 
unused=vfio-pci,uio_pci_generic
:00:06.0 'Virtio network device' if= drv=virtio-pci 
unused=vfio-pci,uio_pci_generic

Other network devices
=


I am not sure why I see the "EAL: No probed ethernet devices" after following 
these steps. Any insights or pointers to this would really help

Thanks a lot!

Regards,
Vaibhav


DISCLAIMER
==
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Ltd. does not accept any liability for virus infected mails.