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

徐荣杰 jackycaresyww9 at gmail.com
Thu Oct 26 03:06:08 UTC 2017


Hi,



I do have the memAccess property as follows for both VM

   <memoryBacking>
    <hugepages>
      <page size='1048576' unit='KiB' nodeset='0'/>
    </hugepages>
  </memoryBacking>

  <cpu mode='host-model'>
    <model fallback='allow'/>
    <topology sockets='2' cores='1' threads='1'/>
    <numa>
      <cell id='0' cpus='0-1' memory='2097152' unit='KiB'
memAccess='shared'/>
    </numa>
  </cpu>


Best Regards

Xu Rongjie (Max)



-----Original Message-----

From: ovs-discuss-bounces at openvswitch.org [
mailto:ovs-discuss-bounces at openvswitch.org
<ovs-discuss-bounces at openvswitch.org>] On Behalf Of Flavio Leitner

Sent: Thursday, October 26, 2017 09:50

To: Xu, Rongjie (NSB - CN/Hangzhou) <rongjie.xu at nokia-sbell.com>

Cc: ovs-discuss at openvswitch.org

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



On Wed, 25 Oct 2017 07:36:13 +0000

"Xu, Rongjie (NSB - CN/Hangzhou)" <rongjie.xu at nokia-sbell.com> 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.:

  <memoryBacking>

    <hugepages>

      <page size='2' unit='M' nodeset='0'/>

    </hugepages>

  </memoryBacking>

...

    <numa>

      <cell id='0' cpus='0-1' memory='4194304' unit='KiB'
memAccess='shared'/>

    </numa>

...



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 at 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 at 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 at 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 at compute0:~# ovs-ofctl show br-int

> OFPT_FEATURES_REPLY (xid=0x2): dpid:0000caf6709a034a

> 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

discuss at openvswitch.org

https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20171026/3d75d0d5/attachment-0001.html>


More information about the discuss mailing list