From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 1B4D3C36C for ; Tue, 4 Aug 2015 11:55:20 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP; 04 Aug 2015 02:55:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,608,1432623600"; d="scan'208";a="535708459" Received: from pgsmsx103.gar.corp.intel.com ([10.221.44.82]) by FMSMGA003.fm.intel.com with ESMTP; 04 Aug 2015 02:55:19 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by PGSMSX103.gar.corp.intel.com (10.221.44.82) with Microsoft SMTP Server (TLS) id 14.3.224.2; Tue, 4 Aug 2015 17:55:17 +0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.45]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.213]) with mapi id 14.03.0224.002; Tue, 4 Aug 2015 17:55:16 +0800 From: "Zhou, Danny" To: wenxu Thread-Topic: [dpdk-dev] Vhost-User port not work and always show 'down' Thread-Index: AQHQzptOrfAVpldt60amSU7NHcI5i537mamg Date: Tue, 4 Aug 2015 09:55:16 +0000 Message-ID: References: <39ac9fd8.1ee37.14ef81ffae7.Coremail.wenx05124561@163.com> In-Reply-To: <39ac9fd8.1ee37.14ef81ffae7.Coremail.wenx05124561@163.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] Vhost-User port not work and always show 'down' X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Aug 2015 09:55:21 -0000 Suggest you post this question to Openvswitch.org. > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of wenxu > Sent: Tuesday, August 04, 2015 5:52 PM > To: dev@dpdk.org > Subject: [dpdk-dev] Vhost-User port not work and always show 'down' >=20 > Hi all, >=20 >=20 > I build a ovs-dpdk and vhost-user POC through INSTALL.DPDK.md. >=20 > There is a br0 with dpdk0 and vhost-user-0 > I build dpdk with 2.0.0 and ovs with branch 2.4 > # ovs-vsctl show > ovs-vsctl show > c38093a7-6c7e-4d6a-a7c1-627d95acbdc6 > Bridge "br0" > Port "br0" > Interface "br0" > type: internal > Port "vhost-user-0" > Interface "vhost-user-0" > type: dpdkvhostuser > Port "dpdk0" > Interface "dpdk0" > type: dpdk >=20 > I setup a virtual machine succesfully. qemu version is 2.3.0 which is ok = for vhost-user >=20 > # qemu-system-x86_64 -smp 2 -m 1024 -hda ubuntu.img -vnc :1 -chardev > socket,id=3Dchar1,path=3D/usr/local/var/run/openvswitch/vhost-user-0 -net= dev > type=3Dvhost-user,id=3Dmynet1,chardev=3Dchar1,vhostforce -device virtio-n= et-pci,mac=3D22:33:44:55:66:77,netdev=3Dmynet1 -object > memory-backend-file,id=3Dmem,size=3D1024M,mem-path=3D/dev/hugepages,share= =3Don -numa node,memdev=3Dmem -mem-prealloc >=20 > qemu-system-x86_64: -netdev type=3Dvhost-user,id=3Dmynet1,chardev=3Dchar1= ,vhostforce: chardev "char1" went up >=20 > I set the br0 10.0.0.2/24 and virtual machine eth0 10.0.0.1/24 > But they can't ping each other >=20 > # ovs-ofctl dump-flows br0 > NXST_FLOW reply (xid=3D0x4): > cookie=3D0x0, duration=3D79598.075s, table=3D0, n_packets=3D445, n_bytes= =3D27204, idle_age=3D0, hard_age=3D65534, priority=3D0 > actions=3DNORMAL >=20 > # ovs-vsctl list interface vhost-user-0 > _uuid : ca02a658-3f7f-4133-8b3c-cfc776154d38 > admin_state : down > bfd : {} > bfd_status : {} > cfm_fault : [] > cfm_fault_status : [] > cfm_flap_count : [] > cfm_health : [] > cfm_mpid : [] > cfm_remote_mpids : [] > cfm_remote_opstate : [] > duplex : [] > error : [] > external_ids : {} > ifindex : 0 > ingress_policing_burst: 0 > ingress_policing_rate: 0 > lacp_current : [] > link_resets : 1 > link_speed : [] > link_state : down > lldp : {} > mac : [] > mac_in_use : "00:00:00:00:00:00" > mtu : 1500 > name : "vhost-user-0" > ofport : 4 > ofport_request : [] > options : {} > other_config : {} > statistics : {rx_packets=3D0, tx_dropped=3D36, tx_packets=3D0} > status : {} > type : dpdkvhostuser >=20 > I can see the vhost-user-0 port always show down and there are some drop= ped packets which are sent from br0. >=20 > Are there some wrong with my POC? >=20 > BR > Xu Wen >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20