From patchwork Thu Jan 13 16:32:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiale, SongX" X-Patchwork-Id: 105767 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E7C69A00C4; Thu, 13 Jan 2022 09:03:59 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A88FF4271A; Thu, 13 Jan 2022 09:03:59 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 7284C40150 for ; Thu, 13 Jan 2022 09:03:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1642061038; x=1673597038; h=from:to:cc:subject:date:message-id; bh=f5S+BGb+NreZKuPvK1zP/hMlNk8Yd3j61JdiKk5PK3Q=; b=dgJG2xgjN++NiLk6182tQ9GXDfnEP3lL+AlAtOaXFeaQ5NdkqrweKKmh KA7lfItr8EBY68lmr7Xc7N6SgbC5OEmFoUNC1oSBj0RqwZgIFJx7GRR01 42lgrr2Yjw7sVgjzSbLDcM2hwdmJZwOM1Wgx3jtbwwKThSaw+PvS7Z+cr F8QVQkpW3tOugTbUguyOjVEu9pHBfjES3DF8v1suFx2yYoqRzPrzaDh2J l7peqzO1J3f1w8f3mSbpmsiISnRU3l2p38OuMKMMpQW4M8sYpjwS5GC8/ 2vhKANEBkgy48LEIXfbBMOsIW9UdTUsCQTjmisMAHUplcucsRtGf5lL6/ Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10225"; a="223937859" X-IronPort-AV: E=Sophos;i="5.88,284,1635231600"; d="scan'208";a="223937859" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jan 2022 00:03:36 -0800 X-IronPort-AV: E=Sophos;i="5.88,284,1635231600"; d="scan'208";a="473139064" Received: from unknown (HELO cvl_tetser_105.icx.intel.com) ([10.239.251.94]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jan 2022 00:03:34 -0800 From: Jiale Song To: dts@dpdk.org Cc: Jiale Song Subject: [dts] [PATCH V1] test_plans/iavf_*: modify test plan to adapt meson build Date: Thu, 13 Jan 2022 16:32:53 +0000 Message-Id: <20220113163253.6704-1-songx.jiale@intel.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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 modify dpdk app/example name and take build type to meson. for example: 1.testpmd to dpdk-testpmd. 2.l3fwd-power to dpdk-l3fwd-power 3.make install to meson build. Signed-off-by: Jiale Song --- test_plans/iavf_fdir_test_plan.rst | 22 +++++++++--------- ..._package_driver_error_handle_test_plan.rst | 5 ++-- test_plans/iavf_test_plan.rst | 23 ++++++++++--------- 3 files changed, 26 insertions(+), 24 deletions(-) diff --git a/test_plans/iavf_fdir_test_plan.rst b/test_plans/iavf_fdir_test_plan.rst index 784392e2..d371ca71 100644 --- a/test_plans/iavf_fdir_test_plan.rst +++ b/test_plans/iavf_fdir_test_plan.rst @@ -236,7 +236,7 @@ Prerequisites 5. Launch the app ``testpmd`` with the following arguments:: - ./testpmd -c 0xff -n 6 -a 86:01.0 -a 86:01.1 --file-prefix=vf -- -i --rxq=16 --txq=16 + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff -n 6 -a 86:01.0 -a 86:01.1 --file-prefix=vf -- -i --rxq=16 --txq=16 testpmd> set fwd rxonly testpmd> set verbose 1 @@ -4446,7 +4446,7 @@ Subcase 1: same rules 3. start testpmd on vf00 and vf01:: - ./testpmd -c 0xff -n 6 -a 86:01.0 -a 86:01.1 --file-prefix=vf0 -- -i --rxq=16 --txq=16 + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff -n 6 -a 86:01.0 -a 86:01.1 --file-prefix=vf0 -- -i --rxq=16 --txq=16 create same rules with pf:: @@ -4464,7 +4464,7 @@ Subcase 1: same rules 4. start testpmd on vf10 and vf11:: - ./testpmd -c 0xff00 -n 6 -a 86:11.0 -a 86:11.1 --file-prefix=vf1 -- -i --rxq=16 --txq=16 + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff00 -n 6 -a 86:11.0 -a 86:11.1 --file-prefix=vf1 -- -i --rxq=16 --txq=16 create same rules with pf:: @@ -4549,7 +4549,7 @@ Subcase 2: same input set, different actions 2. start testpmd on vf00 and vf01:: - ./testpmd -c 0xff -n 6 -a 86:01.0 -a 86:01.1 --file-prefix=vf0 -- -i --rxq=16 --txq=16 + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff -n 6 -a 86:01.0 -a 86:01.1 --file-prefix=vf0 -- -i --rxq=16 --txq=16 create same rules with pf:: @@ -4558,7 +4558,7 @@ Subcase 2: same input set, different actions 3. start testpmd on vf10 and vf11:: - ./testpmd -c 0xff00 -n 6 -a 86:11.0 -a 86:11.1 --file-prefix=vf1 -- -i --rxq=16 --txq=16 + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff00 -n 6 -a 86:11.0 -a 86:11.1 --file-prefix=vf1 -- -i --rxq=16 --txq=16 create same rules with pf:: @@ -4611,7 +4611,7 @@ Subcase 3: different patterns, different actions 2. start testpmd on vf00 and vf01:: - ./testpmd -c 0xff -n 6 -a 86:01.0 -a 86:01.1 --file-prefix=vf0 -- -i --rxq=16 --txq=16 + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff -n 6 -a 86:01.0 -a 86:01.1 --file-prefix=vf0 -- -i --rxq=16 --txq=16 create same rules with pf:: @@ -4620,7 +4620,7 @@ Subcase 3: different patterns, different actions 3. start testpmd on vf10 and vf11:: - ./testpmd -c 0xff00 -n 6 -a 86:11.0 -a 86:11.1 --file-prefix=vf1 -- -i --rxq=16 --txq=16 + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff00 -n 6 -a 86:11.0 -a 86:11.1 --file-prefix=vf1 -- -i --rxq=16 --txq=16 create same rules with pf:: @@ -4689,7 +4689,7 @@ Subcase 1: 128 profiles then start testpmd:: - ./testpmd -c 0xf -n 6 --file-prefix=vf -- -i --rxq=4 --txq=4 + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xf -n 6 --file-prefix=vf -- -i --rxq=4 --txq=4 2. create 8 rules with different patterns on each port:: @@ -5071,7 +5071,7 @@ Subcase 1: PFCP FDIR vlan strip on HW checksum offload check ------------------------------------------------------------ 1. start testpmd on vf00:: - ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xff -n 6 -a 86:01.0 --file-prefix=vf -- -i --rxq=16 --txq=16 --enable-rx-cksum --port-topology=loop + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff -n 6 -a 86:01.0 --file-prefix=vf -- -i --rxq=16 --txq=16 --enable-rx-cksum --port-topology=loop 2. Enable vlan filter and receipt of VLAN packets with VLAN Tag Identifier 1 on port 0. Enable vlan strip on port 0:: @@ -5141,7 +5141,7 @@ subcase 2: PFCP FDIR vlan strip off SW checksum offload check ------------------------------------------------------------- 1. start testpmd on vf00:: - ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xff -n 6 -a 86:01.0 --file-prefix=vf -- -i --rxq=16 --txq=16 --enable-rx-cksum --port-topology=loop + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff -n 6 -a 86:01.0 --file-prefix=vf -- -i --rxq=16 --txq=16 --enable-rx-cksum --port-topology=loop 2. Enable vlan filter and receipt of VLAN packets with VLAN Tag Identifier 1 on port 0. Disable vlan strip on port 0:: @@ -5209,7 +5209,7 @@ subcase 3: PFCP FDIR vlan insert on ----------------------------------- 1. start testpmd on vf00:: - ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xff -n 6 -a 86:01.0 --file-prefix=vf -- -i --rxq=16 --txq=16 + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xff -n 6 -a 86:01.0 --file-prefix=vf -- -i --rxq=16 --txq=16 2. Enable vlan filter and insert VLAN Tag Identifier 1 to vlan packet sent from port 0:: diff --git a/test_plans/iavf_package_driver_error_handle_test_plan.rst b/test_plans/iavf_package_driver_error_handle_test_plan.rst index fe95e29e..6c34b0a8 100644 --- a/test_plans/iavf_package_driver_error_handle_test_plan.rst +++ b/test_plans/iavf_package_driver_error_handle_test_plan.rst @@ -61,7 +61,8 @@ Prerequisites 4. Compile DPDK:: - make -j install T=x86_64-native-linuxapp-gcc + CC=gcc meson -Denable_kmods=True -Dlibdir=lib --default-library=static x86_64-native-linuxapp-gcc + ninja -C x86_64-native-linuxapp-gcc Test Case 1: Check old driver and latest commes pkg compatibility ================================================================= @@ -78,7 +79,7 @@ Test Case 1: Check old driver and latest commes pkg compatibility ./usertools/dpdk-devbind.py -b vfio-pci 0000:b1:01.0 4. Launch the testpmd - ./x86_64-native-linuxapp-gcc/app/testpmd -l 6-9 -n 4 -a b1:01.0 --file-prefix=vf -- -i --rxq=16 --txq=16 --nb-cores=2 + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 6-9 -n 4 -a b1:01.0 --file-prefix=vf -- -i --rxq=16 --txq=16 --nb-cores=2 5. Create a rss rule testpmd> flow create 0 ingress pattern eth / ipv4 / end actions rss types l3-dst-only end key_len 0 queues end / end diff --git a/test_plans/iavf_test_plan.rst b/test_plans/iavf_test_plan.rst index f79214d9..c055cd83 100644 --- a/test_plans/iavf_test_plan.rst +++ b/test_plans/iavf_test_plan.rst @@ -245,7 +245,7 @@ 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 + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x3 -n 1 -- -i testpmd>set fwd mac testpmd>start @@ -259,7 +259,7 @@ 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=3000 --tx-offloads=0x8000 + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x3 -n 1 -- -i --max-pkt-len=3000 --tx-offloads=0x8000 testpmd>set fwd mac testpmd>start @@ -275,7 +275,7 @@ Test Cases: VF rss ==================== Start testpmd on VM:: - ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x3 -n 1 -- -i --txq=4 --rxq=4 + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x3 -n 1 -- -i --txq=4 --rxq=4 Test Case: test redirection table config ------------------------------------------- @@ -298,7 +298,7 @@ Test Cases:VF offload ======================= Start testpmd on VM:: - ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x3 -n 1 -- -i + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x3 -n 1 -- -i Test Case: enable HW checksum offload ------------------------------------------- @@ -383,7 +383,8 @@ Test case: rx interrupt :: build l3fwd-power - make -C examples/l3fwd-power RTE_SDK=`pwd` T=x86_64-native-linuxapp-gcc + meson configure -Dexamples=l3fwd-power x86_64-native-linuxapp-gcc + ninja -C x86_64-native-linuxapp-gcc enable vfio noiommu modprobe -r vfio_iommu_type1 @@ -393,7 +394,7 @@ Test case: rx interrupt modprobe vfio-pci start l3fwd power with one queue per port. - ./examples/l3fwd-power/build/l3fwd-power -l 6,7 -n 4 -- \ + ./x86_64-native-linuxapp-gcc/examples/dpdk-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:: @@ -425,14 +426,14 @@ 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=vfio-pci 09:02.0 09:0a.0 - ./x86_64-native-linuxapp-gcc/app/testpmd -l 1,2 -n 4 --socket-mem=1024,1024 --file-prefix=pf -a 08:00.0 -- -i + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1,2 -n 4 --socket-mem=1024,1024 --file-prefix=pf -a 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=3 --socket-mem=1024,1024 --file-prefix=vf1 \ + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 3-5 -n 4 --master-lcore=3 --socket-mem=1024,1024 --file-prefix=vf1 \ -a 09:02.0 -- -i --txq=2 --rxq=2 --rxd=512 --txd=512 --nb-cores=2 --rss-ip --eth-peer=0,00:12:34:56:78:02 testpmd>set promisc all off @@ -441,7 +442,7 @@ start testpmd with 2VFs individually:: :: - ./x86_64-native-linuxapp-gcc/app/testpmd -l 6-8 -n 4 --master-lcore=6 --socket-mem=1024,1024 --file-prefix=vf2 \ + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 6-8 -n 4 --master-lcore=6 --socket-mem=1024,1024 --file-prefix=vf2 \ -a 09:0a.0 -- -i --txq=2 --rxq=2 --rxd=512 --txd=512 --nb-cores=2 --rss-ip testpmd>set promisc all off @@ -460,7 +461,7 @@ Test Case: vector vf performance 2. start testpmd for PF:: - ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x6 -n 4 --socket-mem=1024,1024 --file-prefix=pf \ + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x6 -n 4 --socket-mem=1024,1024 --file-prefix=pf \ -a 08:00.0 -a 08:00.1 -- -i testpmd>set vf mac addr 0 0 00:12:34:56:78:01 @@ -468,7 +469,7 @@ Test Case: vector vf performance 3. start testpmd for VF:: - ./x86_64-native-linuxapp-gcc/app/testpmd -c 0x0f8 -n 4 --master-lcore=3 --socket-mem=1024,1024 --file-prefix=vf \ + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x0f8 -n 4 --master-lcore=3 --socket-mem=1024,1024 --file-prefix=vf \ -a 09:0a.0 -a 09:02.0 -- -i --txq=2 --rxq=2 --rxd=512 --txd=512 --nb-cores=4 --rss-ip testpmd>set promisc all off