From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from fncnmp04.fnc.fujitsu.com (fncnmp04.fnc.fujitsu.com [168.127.0.57]) by dpdk.org (Postfix) with ESMTP id DA9EF5960 for ; Thu, 7 May 2015 15:29:52 +0200 (CEST) X-IronPort-AV: E=Sophos;i="5.13,384,1427778000"; d="scan'208";a="64984000" Received: from unknown (HELO [168.127.130.2]) ([168.127.130.2]) by fncnmp02.fnc.fujitsu.com with ESMTP; 07 May 2015 08:29:48 -0500 Message-ID: <554B68CB.9080606@us.fujitsu.com> Date: Thu, 07 May 2015 08:29:47 -0500 From: Ravi Rao User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0 MIME-Version: 1.0 To: topperxin , dev@dpdk.org References: <15a973e7.12107.14d2e815ade.Coremail.topperxin@126.com> In-Reply-To: <15a973e7.12107.14d2e815ade.Coremail.topperxin@126.com> Content-Type: text/plain; charset=gbk; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] How to use dpdk ovs 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: Thu, 07 May 2015 13:29:53 -0000 Hi, Below are the seps that I followed to get DPDK with OVS. Some of the paths need to be changed to your env.. #12 Test Switching using OpenVSwitch with DPDK ************** #--- Setup the ifaces as dpdk.. cd /home/vnspteam01/dpdk-1.7.1 cd /home/vnspteam01/dpdk-1.8.0 sudo modprobe uio sudo modprobe cuse sudo rmmod igb_uio sudo rmmod rte_kni sudo insmod x86_64-native-linuxapp-gcc/kmod/igb_uio.ko #**** Assign the dpdk capable interfaces to igb_uio driver tools/dpdk_nic_bind.py --status sudo /home/vnspteam01/dpdk-1.7.1/tools/dpdk_nic_bind.py -b igb_uio 0000:02:00.0 sudo /home/vnspteam01/dpdk-1.7.1/tools/dpdk_nic_bind.py -b igb_uio 0000:02:00.1 /home/vnspteam01/dpdk-1.7.1/tools/dpdk_nic_bind.py --status #--- Setup the openVswitch su -l cd /home/vnspteam01/openvswitch-2.3.1 pkill -9 ovs mkdir -p /usr/local/etc/openvswitch mkdir -p /usr/local/var/run/openvswitch rm -rf /usr/local/etc/openvswitch/conf.db ovsdb/ovsdb-tool create /usr/local/etc/openvswitch/conf.db vswitchd/vswitch.ovsschema #Start ovsdb-server ovsdb/ovsdb-server --remote=punix:/usr/local/var/run/openvswitch/db.sock --remote=db:Open_vSwitch,Open_vSwitch,manager_options --pidfile --detach utilities/ovs-vsctl --no-wait init #Start vswitchd: export DB_SOCK=/usr/local/var/run/openvswitch/db.sock vswitchd/ovs-vswitchd --dpdk -c 0x3 -n 4 --syslog syslog -- unix:$DB_SOCK --pidfile --detach #Add bridge & ports utilities/ovs-vsctl add-br ovs-br0 -- set bridge ovs-br0 datapath_type=netdev utilities/ovs-vsctl add-port ovs-br0 dpdk0 -- set Interface dpdk0 type=dpdk utilities/ovs-vsctl add-port ovs-br0 dpdk1 -- set Interface dpdk1 type=dpdk #display utilities/ovs-vsctl show utilities/ovs-vsctl list interface dpdk0 utilities/ovs-vsctl list interface dpdk1 #Add test flows utilities/ovs-ofctl del-flows br0 # Add flows between port 1 (dpdk0) to port 2 (dpdk1) utilities/ovs-ofctl add-flow br0 in_port=1,action=output:2 utilities/ovs-ofctl add-flow br0 in_port=2,action=output:1 Regards, Ravi On 05/07/15 08:12, topperxin wrote: > Hi all > I'm freshman of dpdk. > And , I want to use dpdk ovs. I compiled successfully. > like: > Bridge "br0" > Port "br0" > Interface "br0" > type: internal > Port "dpdk0" > Interface "dpdk0" > type: dpdk > But ,I don't know how to use the dpdk port, how to let the data flow go through the dpdk0? > Who can tell me, thanks a lot. > > lx >