>          I want to test dpdk vhost-user port on ovs to follow
> https://software.intel.com/en-us/blogs/2015/06/09/building-vhost-user-for-
> ovs-today-using-dpdk-200;
> I create ovs+dpdk environment followed INSTALL.DPDK.md; and create 2
> VM2, try to ping each other but show me "Destination Host Unreachable";
> Dump-flows shows packets matched the flow, but can't output to port 4,
> why ? I can't get any useful error or warning info from ovs-vswitchd.log.

Do any statistics increment on the interface on the VM? Eg rx errors?
What versions of OVS / DPDK / QEMU are you using?
Some things to try if you haven't already:
QEMU v2.5.0
Disable mergeable rx buffers like so:
-device virtio-net-pci,mac=00:00:00:00:01:12,netdev=mynet1, mrg_rxbuf=off

Thanks,
Ciara

> 
> ovs-ofctl dump-flows ovsbr0
> NXST_FLOW reply (xid=0x4):
> cookie=0x0, duration=836.946s, table=0, n_packets=628, n_bytes=26376,
> idle_age=0, in_port=3 actions=output:4
> cookie=0x0, duration=831.458s, table=0, n_packets=36, n_bytes=1512,
> idle_age=770, in_port=4 actions=output:3
> 
> root@host152:/usr/local/var/run/openvswitch# ovs-vsctl show
> 03ae6f7d-3b71-45e3-beb0-09fa11292eaa
>     Bridge "ovsbr0"
>         Port "vhost-user-1"
>             Interface "vhost-user-1"
>                 type: dpdkvhostuser
>         Port "ovsbr0"
>             Interface "ovsbr0"
>                 type: internal
>         Port "dpdk1"
>             Interface "dpdk1"
>                 type: dpdk
>         Port "vhost-user-0"
>             Interface "vhost-user-0"
>                 type: dpdkvhostuser
>         Port "dpdk0"
>             Interface "dpdk0"
>                 type: dpdk
> 
> Start VM info:
> qemu-system-x86_64 -m 1024 -smp 2 -hda /root/vm11.qcow2 -boot c -
> enable-kvm -vnc 0.0.0.0:1 -chardev
> socket,id=char1,path=/usr/local/var/run/openvswitch/vhost-user-0 -netdev
> type=vhost-user,id=mynet1,chardev=char1,vhostforce -device virtio-net-
> pci,mac=00:00:00:00:01:12,netdev=mynet1 -object memory-backend-
> file,id=mem,size=1024M,mem-path=/dev/hugepages,share=on -numa
> node,memdev=mem -mem-prealloc -d exec
> 
> qemu-system-x86_64: -netdev type=vhost-
> user,id=mynet1,chardev=char1,vhostforce: chardev "char1" went up
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to