root@host152:~# ovs-ofctl show ovsbr0
OFPT_FEATURES_REPLY (xid=0x2): dpid:00002c534a01cd5e
n_tables:254, n_buffers:256
capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IP
actions: output enqueue set_vlan_vid set_vlan_pcp strip_vlan mod_dl_src
mod_dl_d st mod_nw_src mod_nw_dst mod_nw_tos
mod_tp_src mod_tp_dst
1(dpdk0): addr:2c:53:4a:01:cd:5e
config: 0
state: 0
current: 100MB-FD
advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD 1GB-HD 1GB-FD 10GB-FD
COPPER FIBER AUTO_NEG AUTO_PAUSE
supported: FIBER AUTO_PAUSE_ASYM
speed: 100 Mbps now, 0 Mbps max
2(dpdk1): addr:2c:53:4a:01:cd:5f
config: 0
state: 0
current: 100MB-FD
advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD 1GB-HD 1GB-FD 10GB-FD
COPPER FIBER AUTO_NEG AUTO_PAUSE
supported: FIBER AUTO_PAUSE_ASYM
speed: 100 Mbps now, 0 Mbps max
3(vhost-user-0): addr:00:00:00:00:00:00
config: PORT_DOWN
state: LINK_DOWN
speed: 0 Mbps now, 0 Mbps max
4(vhost-user-1): addr:00:00:00:00:00:00
config: PORT_DOWN
state: LINK_DOWN
speed: 0 Mbps now, 0 Mbps max
LOCAL(ovsbr0): addr:2c:53:4a:01:cd:5e
config: PORT_DOWN
state: LINK_DOWN
current: 10MB-FD COPPER
speed: 10 Mbps now, 0 Mbps max
OFPT_GET_CONFIG_REPLY (xid=0x4): frags=normal miss_send_len=0
发件人: lifuqiong [mailto:[email protected]]
发送时间: 2016年4月13日 21:04
收件人: '[email protected]'
主题: ovs + dpdk vhost-user match flows but cannot execute actions
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-ov
s-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.
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
[email protected]
http://openvswitch.org/mailman/listinfo/discuss