From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id EA9C5559C for ; Fri, 5 Dec 2014 11:51:28 +0100 (CET) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 05 Dec 2014 02:51:25 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.07,521,1413270000"; d="scan'208";a="642883951" Received: from pgsmsx108.gar.corp.intel.com ([10.221.44.103]) by fmsmga002.fm.intel.com with ESMTP; 05 Dec 2014 02:51:06 -0800 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by PGSMSX108.gar.corp.intel.com (10.221.44.103) with Microsoft SMTP Server (TLS) id 14.3.195.1; Fri, 5 Dec 2014 18:51:05 +0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.110]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.86]) with mapi id 14.03.0195.001; Fri, 5 Dec 2014 18:51:03 +0800 From: "Fu, JingguoX" To: "Xie, Huawei" , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH 0/2] examples/vhost: support new VMDQ api and new nic i40e in vhost example Thread-Index: AQHP/sjkpb/QJiqc30Gia7P9ktwRJ5yA4NjA Date: Fri, 5 Dec 2014 10:51:03 +0000 Message-ID: <6BD6202160B55B409D4232931158226258FD3F@SHSMSX101.ccr.corp.intel.com> References: <1415831647-11139-1-git-send-email-huawei.xie@intel.com> In-Reply-To: <1415831647-11139-1-git-send-email-huawei.xie@intel.com> Accept-Language: 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 Subject: Re: [dpdk-dev] [PATCH 0/2] examples/vhost: support new VMDQ api and new nic i40e in vhost example 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: Fri, 05 Dec 2014 10:51:30 -0000 As we validate dpdk 1.8.0 rc2 from org, we report defect: Work_Request IXA= 00388707 The defect is about vhost virtio based 4 x 10 G NIC, and vhost-switch canno= t startup, all cases for one copy on Fortville cannot validate. This defect= can be fixed by this patches. Below are details for validation. Basic Information Patch name examples/vhost: support new VMDQ api and new nic i4= 0e in vhost example Brief description about test purpose Verify the four scenarios f= or virtio one copy Test Flag Tested-by Tester name jingguox.fu@intel.com Test environment - OS Environment - Compilation (GCC) - Hardware Info (CPU & NIC) - Virtualization environment /Configure =20 OS: Fedora20 3.11.10-301.fc20.x86_64 GCC: gcc version 4.8.3 20140911 CPU: Intel(R) Xeon(R) CPU E5-2680 v2 @ 2.80GHz NIC: Intel Corporation Ethernet Controller X710 for 10GbE SFP+ [8086:1572] Test Tool Chain information N/A Commit ID 6e0248660819b8a0b42725c6c881729daf80739f (after apply patches) Detailed Testing information DPDK SW Configuration open CONFIG_RTE_LIB= RTE_VHOST x86_64-native-linuxapp-gcc configuration Test Result Summary Total 4 cases, 4 passed, 0 failed Test Case - name one vm by dpdk forward Test Case - Description Check vhost switch can forward packets rece= ived the first virtio to the second virtio that all on the same vm Test Case -test sample/application Start vhost-switch on host = and start testpmd on guest On host: taskset -c 8-10 vhost-switch -c 0xf00 -n 4 --huge-dir /mnt/huge --socket= -mem 1024,1024 -- -p 1 --mergeable 0 --zero-copy 0 --vm2vm 0 On guest: testpmd -c 0xf -n 4 -- -i --txqflags 0x0f00 Set fwd type tx_first testpmd>set fwd mac testpmd>start tx_first Send packets with vlan id: ether|ip|udp packets Test Case -command / instruction Test Case - expected test result packet generator can get the packe= ts from the second virtio =20 Test Case - name one vm by linux forward Test Case - Description Check vhost switch can forward packets rece= ived the first virtio to the second virtio that all on the same vm Test Case -test sample/application Start vhost-switch on host,= use virtios as Ethernet devices On host: taskset -c 8-10 vhost-switch -c 0xf00 -n 4 --huge-dir /mnt/huge --socket= -mem 1024,1024 -- -p 1 --mergeable 0 --zero-copy 0 --vm2vm 0 On guest: Routing table config ip addr add 192.168.10.2/24 dev eth1 ip addr add 192.168.20.2/24 dev eth2 ip neigh add 192.168.10.1 lladdr 00:00:00:00:00:01 dev eth1 ip neigh add 192.168.20.1 lladdr 00:00:00:00:00:01 dev eth2 ip link set dev eth1 up ip link set dev eth2 up Send packets with vlan id: ether|ip|udp packets Test Case -command / instruction Test Case - expected test result packet generator can get the packe= ts from the second virtio Test Case - name vm to vm by dpdk forward soft switch Test Case - Description Check vhost switch can forward packets rece= ived from the first virtio on VM1 to the second virtio on VM2 Test Case -test sample/application Start vhost-switch on host = and start testpmd on guests On host: taskset -c 8-10 vhost-switch -c 0xf00 -n 4 --huge-dir /mnt/huge --socket= -mem 1024,1024 -- -p 1 --mergeable 0 --zero-copy 0 --vm2vm 1 On guests: VM1: ./testpmd -c 0xf -n 4 -- -i --txqflags 0x0f00 --eth-peer=3D0,00:00:00:00= :00:0A Set fwd type tx_first testpmd>set fwd mac testpmd>start tx_first VM2: testpmd -c 0xf -n 4 -- -i --txqflags 0x0f00 Set fwd type tx_first testpmd>set fwd mac testpmd>start tx_first Send packets without vlan id: ether|ip|udp packets Test Case -command / instruction Test Case - expected test result packet generator can get the packe= ts from the vf on VM2 Test Case - name vm to vm by linux forward soft switch Test Case - Description Check vhost switch can forward packets rece= ived from the first virtio on VM1 to the second virtio on VM2 Test Case -test sample/application Start vhost-switch on host,= use virtios as Ethernet devices On host: taskset -c 8-10 vhost-switch -c 0xf00 -n 4 --huge-dir /mnt/huge --socket= -mem 1024,1024 -- -p 1 --mergeable 0 --zero-copy 0 --vm2vm 1 On guests: VM1: ip addr add 192.168.2.2/24 dev eth1 ip neigh add 192.168.2.1 lladdr 00:00:02:00:00:a1 dev eth1 ip link set dev eth1 up=20 ip addr add 192.168.3.2/24 dev eth0 ip neigh add 192.168.3.1 lladdr 52:00:00:54:00:02 dev eth0 ip link set dev eth0 up VM2: ip addr add 192.168.3.2/24 dev eth1 ip neigh add 192.168.3.1 lladdr 00:00:02:00:00:a1 dev eth1 ip link set dev eth1 up ip addr add 192.168.2.2/24 dev eth0 ip neigh add 192.168.2.1 lladdr 00:00:02:00:00:a1 dev eth0 ip link set dev eth0 up =20 arp -s 192.168.3.1 00:00:02:0a:0a Send packets without vlan id: ether|ip|udp packets Test Case -command / instruction Test Case - expected test result packet generator can get the packe= ts from the vf on VM2 -----Original Message----- From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Huawei Xie Sent: Thursday, November 13, 2014 06:34 To: dev@dpdk.org Subject: [dpdk-dev] [PATCH 0/2] examples/vhost: support new VMDQ api and ne= w nic i40e in vhost example I40E has several different types of VSI and queues are allocated among them= . VMDQ queue base and pool base doesn't start from zero due to this change = and VMDQ doesn't own all queues. rte_eth_dev_info structure is extended to provide VMDQ queue base, pool bas= e, queue number information for us to properly set up VMDQ, i.e, add mac/vl= an filter. This patchset enables the vhost example to use this information to set up V= MDQ. Huawei Xie (2): support new VMDQ API and new nic i40e use factorized default Rx/Tx configuration examples/vhost/main.c | 103 ++++++++++++++++++++--------------------------= ---- 1 file changed, 41 insertions(+), 62 deletions(-) --=20 1.8.1.4