Re: [ovs-discuss] [ovs-dpdk] how to link between guest vNIC and dpdkvhost socket

2017-10-25 Thread Flavio Leitner
On Wed, 25 Oct 2017 07:36:13 +
"Xu, Rongjie (NSB - CN/Hangzhou)"  wrote:

> Hi,
> 
> I have one OpenStack environment with OVS-DPDK (manually installed). I 
> success to launch two VMs on two separate compute node with vhostuser 
> interface type. But I cannot ping from one to another. I found there are even 
> no packets in the local 'br-int' bridge (where dpdkvhostuser interface is 
> attached). My guess is the link between guest vNIC and dpdkvhost socket at 
> host side is somehow broken, but I do not know how to proceed. Anyone any 
> suggestions?


Most probably you forgot to share the memory between host and guest.
in the VM xml:

E.g.:
  

  

  
...

  

...

fbl

> Compute0:
> Bridge br-int
> Controller "tcp:127.0.0.1:6633"
> is_connected: true
> fail_mode: secure
> Port "vhu2aae3928-3c"
> tag: 1
> Interface "vhu2aae3928-3c"
> type: dpdkvhostuser
> root@compute0:~# file /var/run/openvswitch/vhu2aae3928-3c
> /var/run/openvswitch/vhu2aae3928-3c: socket
> 
> Compute1:
> Bridge br-int
> Controller "tcp:127.0.0.1:6633"
> is_connected: true
> fail_mode: secure
> Port "vhuca25b420-6d"
> tag: 1
> Interface "vhuca25b420-6d"
>type: dpdkvhostuser
> root@compute1:~# file /var/run/openvswitch/vhuca25b420-6d
> /var/run/openvswitch/vhuca25b420-6d: socket
> 
> 
> When I ping, I even does not find ARP packets in the br-int flow tables.
> root@compute0:~# ovs-ofctl dump-flows br-int | grep "in_port=3"
> cookie=0xb177d87a58ae18fe, duration=1927.889s, table=0, n_packets=0, 
> n_bytes=0, idle_age=1927, priority=10,icmp6,in_port=3,icmp_type=136 
> actions=resubmit(,24)
> cookie=0xb177d87a58ae18fe, duration=1927.886s, table=0, n_packets=0, 
> n_bytes=0, idle_age=1927, priority=10,arp,in_port=3 actions=resubmit(,24)
> cookie=0xb177d87a58ae18fe, duration=1927.893s, table=0, n_packets=0, 
> n_bytes=0, idle_age=1927, priority=9,in_port=3 actions=resubmit(,25)
> cookie=0xb177d87a58ae18fe, duration=1927.891s, table=24, n_packets=0, 
> n_bytes=0, idle_age=1927, 
> priority=2,icmp6,in_port=3,icmp_type=136,nd_target=fe80::f816:3eff:fed3:2116 
> actions=NORMAL
> cookie=0xb177d87a58ae18fe, duration=1927.888s, table=24, n_packets=0, 
> n_bytes=0, idle_age=1927, priority=2,arp,in_port=3,arp_spa=192.168.100.13 
> actions=resubmit(,25)
> cookie=0xb177d87a58ae18fe, duration=1927.896s, table=25, n_packets=0, 
> n_bytes=0, idle_age=1927, priority=2,in_port=3,dl_src=fa:16:3e:d3:21:16 
> actions=NORMAL
> 
> root@compute0:~# ovs-ofctl show br-int
> OFPT_FEATURES_REPLY (xid=0x2): dpid:caf6709a034a
> 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_dst mod_nw_src mod_nw_dst mod_nw_tos mod_tp_src mod_tp_dst
> 1(int-br0): addr:7e:de:e2:7b:2a:83
>  config: 0
>  state:  0
>  speed: 0 Mbps now, 0 Mbps max
> 2(patch-tun): addr:5a:2a:d3:f0:14:72
>  config: 0
>  state:  0
>  speed: 0 Mbps now, 0 Mbps max
> 3(vhu2aae3928-3c): addr:00:00:00:00:00:00
>  config: 0
>  state:  0
>  speed: 0 Mbps now, 0 Mbps max
> 
> Best Regards
> Xu Rongjie (Max)
> 



-- 
Flavio

___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


[ovs-discuss] [ovs-dpdk] how to link between guest vNIC and dpdkvhost socket

2017-10-25 Thread Xu, Rongjie (NSB - CN/Hangzhou)
Hi,

I have one OpenStack environment with OVS-DPDK (manually installed). I success 
to launch two VMs on two separate compute node with vhostuser interface type. 
But I cannot ping from one to another. I found there are even no packets in the 
local 'br-int' bridge (where dpdkvhostuser interface is attached). My guess is 
the link between guest vNIC and dpdkvhost socket at host side is somehow 
broken, but I do not know how to proceed. Anyone any suggestions?

Compute0:
Bridge br-int
Controller "tcp:127.0.0.1:6633"
is_connected: true
fail_mode: secure
Port "vhu2aae3928-3c"
tag: 1
Interface "vhu2aae3928-3c"
type: dpdkvhostuser
root@compute0:~# file /var/run/openvswitch/vhu2aae3928-3c
/var/run/openvswitch/vhu2aae3928-3c: socket

Compute1:
Bridge br-int
Controller "tcp:127.0.0.1:6633"
is_connected: true
fail_mode: secure
Port "vhuca25b420-6d"
tag: 1
Interface "vhuca25b420-6d"
   type: dpdkvhostuser
root@compute1:~# file /var/run/openvswitch/vhuca25b420-6d
/var/run/openvswitch/vhuca25b420-6d: socket


When I ping, I even does not find ARP packets in the br-int flow tables.
root@compute0:~# ovs-ofctl dump-flows br-int | grep "in_port=3"
cookie=0xb177d87a58ae18fe, duration=1927.889s, table=0, n_packets=0, n_bytes=0, 
idle_age=1927, priority=10,icmp6,in_port=3,icmp_type=136 actions=resubmit(,24)
cookie=0xb177d87a58ae18fe, duration=1927.886s, table=0, n_packets=0, n_bytes=0, 
idle_age=1927, priority=10,arp,in_port=3 actions=resubmit(,24)
cookie=0xb177d87a58ae18fe, duration=1927.893s, table=0, n_packets=0, n_bytes=0, 
idle_age=1927, priority=9,in_port=3 actions=resubmit(,25)
cookie=0xb177d87a58ae18fe, duration=1927.891s, table=24, n_packets=0, 
n_bytes=0, idle_age=1927, 
priority=2,icmp6,in_port=3,icmp_type=136,nd_target=fe80::f816:3eff:fed3:2116 
actions=NORMAL
cookie=0xb177d87a58ae18fe, duration=1927.888s, table=24, n_packets=0, 
n_bytes=0, idle_age=1927, priority=2,arp,in_port=3,arp_spa=192.168.100.13 
actions=resubmit(,25)
cookie=0xb177d87a58ae18fe, duration=1927.896s, table=25, n_packets=0, 
n_bytes=0, idle_age=1927, priority=2,in_port=3,dl_src=fa:16:3e:d3:21:16 
actions=NORMAL

root@compute0:~# ovs-ofctl show br-int
OFPT_FEATURES_REPLY (xid=0x2): dpid:caf6709a034a
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_dst mod_nw_src mod_nw_dst mod_nw_tos mod_tp_src mod_tp_dst
1(int-br0): addr:7e:de:e2:7b:2a:83
 config: 0
 state:  0
 speed: 0 Mbps now, 0 Mbps max
2(patch-tun): addr:5a:2a:d3:f0:14:72
 config: 0
 state:  0
 speed: 0 Mbps now, 0 Mbps max
3(vhu2aae3928-3c): addr:00:00:00:00:00:00
 config: 0
 state:  0
 speed: 0 Mbps now, 0 Mbps max

Best Regards
Xu Rongjie (Max)

___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


[ovs-discuss] [ovs-dpdk] how to link between guest vNIC and dpdkvhost socket

2017-10-25 Thread Xu, Rongjie (NSB - CN/Hangzhou)
Hi,

I have one OpenStack environment with OVS-DPDK (manually installed). I success 
to launch two VMs on two separate compute node with vhostuser interface type. 
But I cannot ping from one to another. I found there are even no packets in the 
local 'br-int' bridge (where dpdkvhostuser interface is attached). My guess is 
the link between guest vNIC and dpdkvhost socket at host side is somehow 
broken, but I do not know how to proceed. Anyone any suggestions?

Compute0:
Bridge br-int
Controller "tcp:127.0.0.1:6633"
is_connected: true
fail_mode: secure
Port "vhu2aae3928-3c"
tag: 1
Interface "vhu2aae3928-3c"
type: dpdkvhostuser
root@compute0:~# file /var/run/openvswitch/vhu2aae3928-3c
/var/run/openvswitch/vhu2aae3928-3c: socket

Compute1:
Bridge br-int
Controller "tcp:127.0.0.1:6633"
is_connected: true
fail_mode: secure
Port "vhuca25b420-6d"
tag: 1
Interface "vhuca25b420-6d"
   type: dpdkvhostuser
root@compute1:~# file /var/run/openvswitch/vhuca25b420-6d
/var/run/openvswitch/vhuca25b420-6d: socket


When I ping, I even does not find ARP packets in the br-int flow tables.
root@compute0:~# ovs-ofctl dump-flows br-int | grep "in_port=3"
cookie=0xb177d87a58ae18fe, duration=1927.889s, table=0, n_packets=0, n_bytes=0, 
idle_age=1927, priority=10,icmp6,in_port=3,icmp_type=136 actions=resubmit(,24)
cookie=0xb177d87a58ae18fe, duration=1927.886s, table=0, n_packets=0, n_bytes=0, 
idle_age=1927, priority=10,arp,in_port=3 actions=resubmit(,24)
cookie=0xb177d87a58ae18fe, duration=1927.893s, table=0, n_packets=0, n_bytes=0, 
idle_age=1927, priority=9,in_port=3 actions=resubmit(,25)
cookie=0xb177d87a58ae18fe, duration=1927.891s, table=24, n_packets=0, 
n_bytes=0, idle_age=1927, 
priority=2,icmp6,in_port=3,icmp_type=136,nd_target=fe80::f816:3eff:fed3:2116 
actions=NORMAL
cookie=0xb177d87a58ae18fe, duration=1927.888s, table=24, n_packets=0, 
n_bytes=0, idle_age=1927, priority=2,arp,in_port=3,arp_spa=192.168.100.13 
actions=resubmit(,25)
cookie=0xb177d87a58ae18fe, duration=1927.896s, table=25, n_packets=0, 
n_bytes=0, idle_age=1927, priority=2,in_port=3,dl_src=fa:16:3e:d3:21:16 
actions=NORMAL

root@compute0:~# ovs-ofctl show br-int
OFPT_FEATURES_REPLY (xid=0x2): dpid:caf6709a034a
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_dst mod_nw_src mod_nw_dst mod_nw_tos mod_tp_src mod_tp_dst
1(int-br0): addr:7e:de:e2:7b:2a:83
 config: 0
 state:  0
 speed: 0 Mbps now, 0 Mbps max
2(patch-tun): addr:5a:2a:d3:f0:14:72
 config: 0
 state:  0
 speed: 0 Mbps now, 0 Mbps max
3(vhu2aae3928-3c): addr:00:00:00:00:00:00
 config: 0
 state:  0
 speed: 0 Mbps now, 0 Mbps max

Best Regards
Xu Rongjie (Max)

___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss