From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5F622A00E6 for ; Wed, 7 Aug 2019 09:26:35 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 33ADA2C6A; Wed, 7 Aug 2019 09:26:35 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id A5E272C58 for ; Wed, 7 Aug 2019 09:26:33 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Aug 2019 00:26:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,356,1559545200"; d="scan'208";a="168541687" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga008.jf.intel.com with ESMTP; 07 Aug 2019 00:26:32 -0700 Received: from fmsmsx119.amr.corp.intel.com (10.18.124.207) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 7 Aug 2019 00:26:31 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX119.amr.corp.intel.com (10.18.124.207) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 7 Aug 2019 00:26:31 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.80]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.62]) with mapi id 14.03.0439.000; Wed, 7 Aug 2019 15:26:29 +0800 From: "Tu, Lijuan" To: "Zhu, WenhuiX" , "dts@dpdk.org" CC: "Zhu, WenhuiX" Thread-Topic: [dts] [PATCH V2] test_plans/iavf:upload test plan Thread-Index: AQHVQgysEp2YfFieWUKxBxWzIR5fpqbvXrKA Date: Wed, 7 Aug 2019 07:26:29 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BAFEFFC@SHSMSX101.ccr.corp.intel.com> References: <1563965274-50481-1-git-send-email-wenhuix.zhu@intel.com> In-Reply-To: <1563965274-50481-1-git-send-email-wenhuix.zhu@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMjc0YjU0MDgtODViYS00MzE4LTkxMjYtYjQzMzEyNzllMjM5IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiVm5UU1NXSUp1VmE3VWJvWExCNytZV09FNGZ1REdZdE1FeFNuN3pvT0ZkXC92K2h3VzNWbGw1WHZyTjlOTHFxVDkifQ== 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: [dts] [PATCH V2] test_plans/iavf:upload test plan X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of zhuwenhui > Sent: Wednesday, July 24, 2019 6:48 PM > To: dts@dpdk.org > Cc: Zhu, WenhuiX > Subject: [dts] [PATCH V2] test_plans/iavf:upload test plan >=20 > Add new test plan. >=20 > Signed-off-by: zhuwenhui > --- > test_plans/iavf_test_plan.rst | 498 ++++++++++++++++++++++++++++++++++ > 1 file changed, 498 insertions(+) > create mode 100644 test_plans/iavf_test_plan.rst >=20 > diff --git a/test_plans/iavf_test_plan.rst b/test_plans/iavf_test_plan.rs= t new > file mode 100644 index 0000000..6081d35 > --- /dev/null > +++ b/test_plans/iavf_test_plan.rst > @@ -0,0 +1,498 @@ > +# BSD LICENSE > +# > +# Copyright(c) 2019 Intel Corporation. All rights reserved. > +# All rights reserved. > +# > +# Redistribution and use in source and binary forms, with or without # > +modification, are permitted provided that the following conditions # > +are met: > +# > +# * Redistributions of source code must retain the above copyright > +# notice, this list of conditions and the following disclaimer. > +# * Redistributions in binary form must reproduce the above copyright > +# notice, this list of conditions and the following disclaimer in > +# the documentation and/or other materials provided with the > +# distribution. > +# * Neither the name of Intel Corporation nor the names of its > +# contributors may be used to endorse or promote products derived > +# from this software without specific prior written permission. > +# > +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND > CONTRIBUTORS # > +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # > +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS > FOR # > +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE > COPYRIGHT # > +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, > INCIDENTAL, # > +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT > # > +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF > USE, # > +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND > ON ANY # > +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # > +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE > USE # > +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. > + > + > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > +DPDK IAVF API Tests > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > +Intel Adaptive Virtual Function(IAVF) > + > +Hardwares > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > +I40E driver NIC (Fortville XXV710, Fortville Spirit, Fortville Eagle) > + > + > +Prerequisites > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > +1. Modify and build DPDK source code to enable IAVF function for I40E NI= C:: > + > + sed -i -e '/IAVF_DEV_ID_ADAPTIVE_VF/s/0x1889/0x154c/g' > drivers/net/iavf/base/iavf_devids.h > + sed -i -e '/I40E_DEV_ID_VF/s/0x154C/0x164C/g' > + drivers/net/i40e/base/i40e_devids.h > + > + make install RTE_SDK=3D`pwd` T=3Dx86_64-native-linuxapp-gcc > + > +2. Configure PF and VF:: > + > + modprobe uio; > + insmod x86_64-native-linuxapp-gcc/kmod/igb_uio.ko; > + ./usertools/dpdk-devbind.py --bind=3Digb_uio 08:00.0 08:00.1 > + > + echo 1 > /sys/bus/pci/devices/0000\:08\:00.0/max_vfs > + echo 1 > /sys/bus/pci/devices/0000\:08\:00.1/max_vfs > + > +3. Start testpmd on host to configure VF ports' mac:: > + > + ./x86_64-native-linuxapp-gcc/app/testpmd -l 1-5 -n 4 -- -i > + > + testpmd>set vf mac addr 0 0 00:12:34:56:78:01 > + testpmd>set vf mac addr 1 0 00:12:34:56:78:02 > + > +4. Pass through VF 09:02.0 and 09:0a.0 to VM0:: > + > + taskset -c 24,25 qemu-system-x86_64 \ > + -name vm0 -enable-kvm -pidfile /tmp/.vm0.pid -daemonize -monitor > unix:/tmp/vm0_monitor.sock,server,nowait \ > + -device e1000,netdev=3Dnttsip1 -netdev > user,id=3Dnttsip1,hostfwd=3Dtcp:10.240.176.247:6000-:22 \ > + -device vfio-pci,host=3D0000:09:02.0,id=3Dpt_0 -device vfio- > pci,host=3D0000:09:0a.0,\ > + id=3Dpt_1 -cpu host -smp 2 -m 10240 -chardev > socket,path=3D/tmp/vm0_qga0.sock,server,nowait,id=3Dvm0_qga0 \ > + -device virtio-serial -device > virtserialport,chardev=3Dvm0_qga0,name=3Dorg.qemu.guest_agent.0 -vnc :1 \ > + -drive > + file=3D/home/image/sriov-fc25-1.img,format=3Draw,if=3Dvirtio,index=3D0,= media=3Dd > + isk > + > + > +5. Modify and build DPDK source code to enable IAVF function for I40E NI= C > in VM:: > + > + sed -i -e '/IAVF_DEV_ID_ADAPTIVE_VF/s/0x1889/0x154c/g' > drivers/net/iavf/base/iavf_devids.h > + sed -i -e '/I40E_DEV_ID_VF/s/0x154C/0x164C/g' > + drivers/net/i40e/base/i40e_devids.h > + > + make install RTE_SDK=3D`pwd` T=3Dx86_64-native-linuxapp-gcc > + > +6. Bind VF to igb_uio or vfio-pic in VM:: > + > + ./usertools/dpdk-devbind.py --bind=3Digb_uio 00:04.0 00:05.0 > + or > + ./usertools/dpdk-devbind.py --bind=3Dvfio-pci 00:04.0 00:05.0 > + > +Test case: VF basic RX/TX > +--------------------------- > +1. Start testpmd on VM:: > + > + ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x3 -n 1 -- -i > + > +2. Check and verify packets which received and forwarded > + > + > +Test Cases: VF mac filter > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D > + > +Start testpmd on VM:: > + > + ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x3 -n 1 -- -i > + > +Test Case: unicast test > +------------------------ > +:: > + > + testpmd>set promisc all off > + testpmd>set allmulti all off > + testpmd>start > + > + testpmd>mac_addr set 0 00:12:34:56:78:03 > + > +disable promisc mode, verify VF packet rx/tx can work fine with the spec= ific > mac addr. > + > +Test Case: multicast test > +------------------------- > +:: > + > + testpmd>set promisc all off > + testpmd>set allmulti all off > + testpmd>start > + > +Send packet with multicast MAC 01:80:C2:00:00:08, and check VF can not > receive the packet. > +:: > + > + testpmd>set allmulti all on > + > +Send packet with multicast MAC 01:80:C2:00:00:08, and check VF can > receive the packet. > + > +Test Case: broadcast test > +------------------------- > +:: > + > + testpmd>set promisc all off > + testpmd>start > + > +Send packets with broadcast address ff:ff:ff:ff:ff:ff, and check VF can > +receive the packet > + > +Test Case: promiscuous mode > +--------------------------- > +:: > + > + testpmd>set promisc all on > + testpmd>start > + > +Send packet that different with vf mac, check packets can be received. > + > +Test Cases: VF VLAN feature vlan filter only work with promisc mode off > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > =3D=3D=3D=3D=3D=3D=3D=3D > +=3D=3D=3D > + > +Start testpmd on VM:: > + > + ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x3 -n 1 -- -i > + > +Test Case: vlan filter > +--------------------------- > +:: > + > + testpmd>port stop all > + testpmd>set promisc all off > + testpmd>vlan set filter off 0 > + testpmd>vlan set filter off 1 > + testpmd>vlan set strip off 0 > + testpmd>vlan set strip off 1 > + > + testpmd>vlan set filter on 0 > + testpmd>set fwd mac > + testpmd>port start all > + testpmd>start > + > +packet with vlan can not be received, packet without vlan packet can be > received. > + > +Test Case: rx_vlan > +--------------------------- > +:: > + > + testpmd>port stop all > + testpmd>set promisc all off > + testpmd>vlan set filter off 0 > + testpmd>vlan set filter off 1 > + testpmd>vlan set strip off 0 > + testpmd>vlan set strip off 1 > + > + testpmd>vlan set filter on 0 > + testpmd>rx_vlan add 20 0 > + testpmd>set fwd mac > + testpmd>port start all > + testpmd>start > + > +packet vlan id equal to 20 can be received, packet vlan id not equal to = 20 > packet can be not received. > + > +Test Case: tx_vlan > +--------------------------- > +:: > + > + testpmd>port stop all > + testpmd>set promisc all on > + testpmd>set fwd mac > + testpmd>vlan set filter off 0 > + testpmd>vlan set filter off 1 > + testpmd>vlan set strip off 0 > + testpmd>vlan set strip off 1 > + testpmd>tx_vlan set 1 20 > + testpmd>port start all > + testpmd>start > + > +packet out from VF contain the vlan tag and vlan id equal to 20. > + > +Test Case: vlan strip > +--------------------------- > +:: > + > + testpmd>port stop all > + testpmd>set promisc all on > + testpmd>set fwd mac > + testpmd>vlan set filter off 0 > + testpmd>vlan set filter off 1 > + testpmd>vlan set strip off 0 > + testpmd>vlan set strip off 1 > + testpmd>vlan set strip on 0 > + testpmd>port start all > + testpmd>start > + > +send a packet with vlan tag, packet out from VF not contain the vlan tag= . > + > +Test Case: vlan promisc mode > +----------------------------- > +:: > + > + testpmd>port stop all > + testpmd>vlan set filter off 0 > + testpmd>vlan set filter off 1 > + testpmd>vlan set strip off 0 > + testpmd>vlan set strip off 1 > + > + testpmd>set promisc all on > + testpmd>set fwd mac > + testpmd>port start all > + testpmd>start > + > +send packet with vlan or without vlan, both can be received and forwarde= d. > + > +Test Cases: VF jumboframe > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D > + > +Ensure Tester's ports support sending jumboframe:: > + > + ifconfig 'tester interface' mtu 9000 > + > + > +Test Case: Check that no jumbo frame support > +-------------------------------------------- > +:: > + > + Launch testpmd for VF ports without enabling jumboframe option > + > + ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x3 -n 1 -- -i > + > + testpmd>set fwd mac > + testpmd>start > + > +packet less than the standard maximum frame (1518) can be received. > +packet more than the standard maximum frame (1518) can not be received. > + > +Test Case: Check that with jumbo frames support > +------------------------------------------------ > +:: > + > + Launch testpmd for VF ports with jumboframe option > + > + ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x3 -n 1 -- -i > + --max-pkt-len=3D3000 --tx-offloads=3D0x8000 > + > + testpmd>set fwd mac > + testpmd>start > + > +packet lengths greater than the standard maximum frame (1518) and lower > +or equal to the maximum frame length can be received. > +Check that packets larger than the configured maximum packet length are > +dropped by the hardware. > + > +**Note the following was expected!** packet size > 9001, not forward , > +but RX-packets: counter increased > + > +Test Cases: VF rss > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > +Start testpmd on VM:: > + > + ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x3 -n 1 -- -i --txq=3D= 4 > + --rxq=3D4 > + > +Test Case: test redirection table config > +------------------------------------------- > +:: > + > + testpmd>port config 0 rss reta (0,0) > + testpmd>port config 0 rss reta (1,1) > + testpmd>port config 0 rss reta (2,2) > + testpmd>port config 0 rss reta (3,3) > + testpmd>port config 0 rss reta (60,0) > + testpmd>port config 0 rss reta (61,1) > + testpmd>port config 0 rss reta (62,2) > + testpmd>port config 0 rss reta (63,3) > + > + testpmd> port config all rss > + (all|ip|tcp|udp|sctp|ether|port|vxlan|geneve|nvgre|none) > + > +send different flow type packets to VF port, check packets received by > different queues. > + > +Test Cases:VF offload > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > +Start testpmd on VM:: > + > + ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x3 -n 1 -- -i > + > +Test Case: enable HW checksum offload > +------------------------------------------- > +:: > + > + testpmd>port stop all > + testpmd>csum set ip hw 0 > + testpmd>csum set udp hw 0 > + testpmd>csum set tcp hw 0 > + testpmd>csum set sctp hw 0 > + > + testpmd>csum set ip hw 1 > + testpmd>csum set udp hw 1 > + testpmd>csum set tcp hw 1 > + testpmd>csum set sctp hw 1 > + > + testpmd>set fwd csum > + testpmd>set verbose 1 > + > + testpmd>port start all > + testpmd>start > + > +Send packets with incorrect checksum to VF port, verify that the > +packets can be received by VF port and checksum error reported, the > +packets forwarded by VF port have the correct checksum value. > + > + > +Test Case: SW checksum, disable HW checksum offload > +--------------------------------------------------- > +:: > + > + testpmd>port stop all > + testpmd>csum set ip sw 0 > + testpmd>csum set udp sw 0 > + testpmd>csum set tcp sw 0 > + testpmd>csum set sctp sw 0 > + > + testpmd>csum set ip sw 1 > + testpmd>csum set udp sw 1 > + testpmd>csum set tcp sw 1 > + testpmd>csum set sctp sw 1 > + > + testpmd>set fwd csum > + testpmd>set verbose 1 > + testpmd>port start all > + testpmd>start > + > +Send packets with incorrect checksum to VF port, verify that the > +packets can be received by VF port and checksum error reported, the > +packets forwarded by VF port have the correct checksum value. > + > + > +Test Case: tso > +------------------------------------------- > +:: > + > + testpmd>port stop all > + testpmd>set verbose 1 > + testpmd>csum set ip hw 0 > + testpmd>csum set udp hw 0 > + testpmd>csum set tcp hw 0 > + testpmd>csum set sctp hw 0 > + > + testpmd>csum set ip hw 1 > + testpmd>csum set udp hw 1 > + testpmd>csum set tcp hw 1 > + testpmd>csum set sctp hw 1 > + > + testpmd>tso set 800 1 > + testpmd>set fwd csum > + testpmd>port start all > + testpmd>start > + > +Send packet which loading size more than 800. > +Verify tcpdump packets send out by VF port is split according to tso siz= e. > + > +Test case: Rx interrupt > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > + > +Test case: rx interrupt > +----------------------- > +:: > + > + build l3fwd-power > + make -C examples/l3fwd-power RTE_SDK=3D`pwd` > + T=3Dx86_64-native-linuxapp-gcc > + > + enable vfio noiommu > + modprobe -r vfio_iommu_type1 > + modprobe -r vfio > + modprobe vfio enable_unsafe_noiommu_mode=3D1 > + cat /sys/module/vfio/parameters/enable_unsafe_noiommu_mode > + modprobe vfio-pci > + > + start l3fwd power with one queue per port. > + ./examples/l3fwd-power/build/l3fwd-power -l 6,7 -n 4 -- \ > + -p 0x3 --config '(0,0,6),(1,0,7)' > + > + Send one packet to VF0 and VF1, check that thread on core6 and core7 > waked up:: > + > + L3FWD_POWER: lcore 6 is waked up from rx interrupt on port 0 queue 0 > + L3FWD_POWER: lcore 7 is waked up from rx interrupt on port 0 queue > + 0 > + > + Check the packet has been normally forwarded. > + > + After the packet forwarded, thread on core6 and core 7 will return t= o > sleep:: > + > + L3FWD_POWER: lcore 6 sleeps until interrupt triggers > + L3FWD_POWER: lcore 7 sleeps until interrupt triggers > + > + Send packet flows to VF0 and VF1, check that thread on core1 and cor= e2 > will > + keep up awake. > + > + > +Test Cases: VF veb > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > + > +Test Case: veb performance > +-------------------------- > + > +create 2 VFs from 1 PF, start testpmd with 2VFs individually, verify > throughput. > + > +create 2 VFs from 1 PF, and start PF:: > + > + echo 2 > /sys/bus/pci/devices/0000\:08\:00.0/max_vfs; > + ./usertools/dpdk-devbind.py --bind=3Dvfio-pci 09:02.0 09:0a.0 > + > + ./x86_64-native-linuxapp-gcc/app/testpmd -l 1,2 -n 4 > + --socket-mem=3D1024,1024 --file-prefix=3Dpf -w 08:00.0 -- -i > + > + testpmd>set vf mac addr 0 0 00:12:34:56:78:01 > + testpmd>set vf mac addr 0 1 00:12:34:56:78:02 > + > +start testpmd with 2VFs individually:: > + > + ./x86_64-native-linuxapp-gcc/app/testpmd -l 3-5 -n 4 --master-lcore= =3D3 -- > socket-mem=3D1024,1024 --file-prefix=3Dvf1 \ > + -w 09:02.0 -- -i --txq=3D2 --rxq=3D2 --rxd=3D512 --txd=3D512 --nb-= cores=3D2 > + --rss-ip --eth-peer=3D0,00:12:34:56:78:02 > + > + testpmd>set promisc all off > + testpmd>set fwd mac > + testpmd>start > + > +:: > + > + ./x86_64-native-linuxapp-gcc/app/testpmd -l 6-8 -n 4 --master-lcore= =3D6 -- > socket-mem=3D1024,1024 --file-prefix=3Dvf2 \ > + -w 09:0a.0 -- -i --txq=3D2 --rxq=3D2 --rxd=3D512 --txd=3D512 > + --nb-cores=3D2 --rss-ip > + > + testpmd>set promisc all off > + testpmd>set fwd mac > + testpmd>start > + > +send traffic and verify throughput. > + > +Test Case: VF performance > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > + > +Test Case: vector vf performance > +--------------------------------- > + > +1. config vector=3Dy in config/common_base, and rebuild dpdk > + > +2. start testpmd for PF:: > + > + ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x6 -n 4 --socket- > mem=3D1024,1024 --file-prefix=3Dpf \ > + -w 08:00.0 -w 08:00.1 -- -i > + > + testpmd>set vf mac addr 0 0 00:12:34:56:78:01 > + testpmd>set vf mac addr 1 0 00:12:34:56:78:02 > + > +3. start testpmd for VF:: > + > + ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x0f8 -n 4 --master-lcor= e=3D3 > --socket-mem=3D1024,1024 --file-prefix=3Dvf \ > + -w 09:0a.0 -w 09:02.0 -- -i --txq=3D2 --rxq=3D2 --rxd=3D512 --tx= d=3D512 > + --nb-cores=3D4 --rss-ip > + > + testpmd>set promisc all off > + testpmd>set fwd mac > + testpmd>start > + > +4. send traffic and verify throughput > + > +Test Case: scalar/bulk vf performance > +------------------------------------- > + > +1. change CONFIG_RTE_LIBRTE_IAVF_INC_VECTOR=3Dn in > config/common_base, and rebuild dpdk. > +2. repeat test steps 2-4 in above test case: vector vf performance. > -- > 2.17.2