DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Fu, JingguoX" <jingguox.fu@intel.com>
To: "Xie, Huawei" <huawei.xie@intel.com>, "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] [PATCH 0/2] examples/vhost: support new VMDQ api and new	nic i40e in vhost example
Date: Fri, 5 Dec 2014 10:51:03 +0000	[thread overview]
Message-ID: <6BD6202160B55B409D4232931158226258FD3F@SHSMSX101.ccr.corp.intel.com> (raw)
In-Reply-To: <1415831647-11139-1-git-send-email-huawei.xie@intel.com>

As we validate dpdk 1.8.0 rc2 from org, we report defect: Work_Request  IXA00388707
The defect is about vhost virtio based 4 x 10 G NIC, and vhost-switch cannot 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 i40e in vhost example
        Brief description about test purpose    Verify the four scenarios for 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   
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_LIBRTE_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 received 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 packets from the second virtio
	  
	  Test Case - name        one vm by linux forward
        Test Case - Description Check vhost switch can forward packets received 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 packets from the second virtio


	  Test Case - name        vm to vm by dpdk forward soft switch
        Test Case - Description Check vhost switch can forward packets received 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=0,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 packets 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 received 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 
	  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
	  
	  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 packets 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 new 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 base, queue number information for us to properly set up VMDQ, i.e, add mac/vlan filter.
This patchset enables the vhost example to use this information to set up VMDQ.

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

-- 
1.8.1.4

      parent reply	other threads:[~2014-12-05 10:51 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-12 22:34 Huawei Xie
2014-11-12 22:34 ` [dpdk-dev] [PATCH 1/2] examples/vhost: support new VMDQ API and new nic i40e Huawei Xie
2014-11-13  0:49   ` Ouyang, Changchun
2014-11-13  1:20     ` Xie, Huawei
2014-11-13  5:58   ` Chen, Jing D
2014-11-14  6:30     ` Xie, Huawei
2014-11-14  7:24       ` Chen, Jing D
2014-11-12 22:34 ` [dpdk-dev] [PATCH 2/2] examples/vhost: use factorized default Rx/Tx configuration Huawei Xie
2014-11-13  6:02   ` Chen, Jing D
2014-11-14  2:17     ` Xie, Huawei
2014-11-12 22:52 ` [dpdk-dev] [PATCH 0/2] examples/vhost: support new VMDQ api and new nic i40e in vhost example Xie, Huawei
2014-12-06 10:16   ` Thomas Monjalon
2014-12-05 10:51 ` Fu, JingguoX [this message]

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=6BD6202160B55B409D4232931158226258FD3F@SHSMSX101.ccr.corp.intel.com \
    --to=jingguox.fu@intel.com \
    --cc=dev@dpdk.org \
    --cc=huawei.xie@intel.com \
    /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).