DPDK usage discussions
 help / color / mirror / Atom feed
From: "Xu, Rongjie (NSB - CN/Hangzhou)" <rongjie.xu@nokia-sbell.com>
To: "users@dpdk.org" <users@dpdk.org>
Subject: [dpdk-users] [ovs-dpdk] how to link between guest vNIC and dpdkvhost socket
Date: Wed, 25 Oct 2017 07:37:52 +0000	[thread overview]
Message-ID: <HE1PR0702MB359344C5CEE273FDA301C92DDF440@HE1PR0702MB3593.eurprd07.prod.outlook.com> (raw)

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: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)



Best Regards
Xu Rongjie (Max)

             reply	other threads:[~2017-10-25  7:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-25  7:37 Xu, Rongjie (NSB - CN/Hangzhou) [this message]
2017-10-25  8:29 ` Xu, Rongjie (NSB - CN/Hangzhou)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=HE1PR0702MB359344C5CEE273FDA301C92DDF440@HE1PR0702MB3593.eurprd07.prod.outlook.com \
    --to=rongjie.xu@nokia-sbell.com \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).