From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 31A1742854; Tue, 28 Mar 2023 09:24:34 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2DF7E410EE; Tue, 28 Mar 2023 09:24:34 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id D3E3440156 for ; Tue, 28 Mar 2023 09:24:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679988273; x=1711524273; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=oJVs6nC8Q1SaJC70V4Gi16tWjwTj6yf9TnQUjaS7U7g=; b=N38Xq26ZBtKyEQ7ec8MZfxGySU1UDITjFjFBmFrW4326OSqUvT3pz1+b p4hxHWHF60L4hxzqB8REfPNc9TiTby/0DNVH490+TRXgHSw+hKbMzwDur 8riWILrVoAUvQw2I+iiBZwLw4UuBHnzcPRBuMwL0MZ67LzxJ3U6FOEsGa BzBdetK4g29bsbgkAdeYKxucVtmySJ0FE5ZkzZI8rAW+wjy0ZIlF9og02 HYhaT2j5qqHOlDRRDwj/5D7vQco79Gwx7v9bnZ8QRDkpVfsxuGv0vYNQO l+D1Ni/aRP/I8zQxt899+KBmdSld1Zwu+uGLEtXq4WDWyJT2fEskvnOXu g==; X-IronPort-AV: E=McAfee;i="6600,9927,10662"; a="324389274" X-IronPort-AV: E=Sophos;i="5.98,296,1673942400"; d="scan'208";a="324389274" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2023 00:24:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10662"; a="794675208" X-IronPort-AV: E=Sophos;i="5.98,296,1673942400"; d="scan'208";a="794675208" Received: from unknown (HELO localhost.localdomain) ([10.239.252.222]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2023 00:24:30 -0700 From: Wei Ling To: dts@dpdk.org Cc: Wei Ling Subject: [dts][PATCH V1 1/2] test_plans/pvp_qemu_multi_paths_port_restart: completion testplan Date: Tue, 28 Mar 2023 15:20:42 +0800 Message-Id: <20230328072043.3795609-2-weix.ling@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230328072043.3795609-1-weix.ling@intel.com> References: <20230328072043.3795609-1-weix.ling@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Completion `-a 0000:04:00.0` parameter when start testpmd in VM and modify testcase 10 re-run time from 100 to 10 to reduce run time. Signed-off-by: Wei Ling --- ...emu_multi_paths_port_restart_test_plan.rst | 130 +++++++++++------- 1 file changed, 80 insertions(+), 50 deletions(-) diff --git a/test_plans/pvp_qemu_multi_paths_port_restart_test_plan.rst b/test_plans/pvp_qemu_multi_paths_port_restart_test_plan.rst index 7e24290a..84ee68de 100644 --- a/test_plans/pvp_qemu_multi_paths_port_restart_test_plan.rst +++ b/test_plans/pvp_qemu_multi_paths_port_restart_test_plan.rst @@ -44,8 +44,8 @@ Test Case 1: pvp test with virtio 0.95 mergeable path 3. On VM, bind virtio net to vfio-pci and run testpmd:: - ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x3 -n 3 -- -i \ - --nb-cores=1 --txd=1024 --rxd=1024 + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x3 -n 1 -a 0000:04:00.0 \ + -- -i --nb-cores=1 --txd=1024 --rxd=1024 testpmd>set fwd mac testpmd>start @@ -53,15 +53,18 @@ Test Case 1: pvp test with virtio 0.95 mergeable path testpmd>show port stats all -5. Port restart 100 times by below command and re-calculate the average througnput,verify the throughput is not zero after port restart:: +5. Stop port at vhost side by below command and re-calculate the average throughput,verify the throughput is zero after port stop:: testpmd>stop + testpmd>port stop 0 + testpmd>show port stats 0 + +6. Restart port at vhost side by below command and re-calculate the average throughput,verify the throughput is not zero after port restart:: + + testpmd>clear port stats all + testpmd>port start all testpmd>start - ... - testpmd>stop - testpmd>show port stats all - testpmd>start - testpmd>show port stats all + testpmd>show port stats 0 Test Case 2: pvp test with virtio 0.95 normal path ================================================== @@ -90,8 +93,8 @@ Test Case 2: pvp test with virtio 0.95 normal path 3. On VM, bind virtio net to vfio-pci and run testpmd with tx-offloads:: - ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x3 -n 4 -- -i --tx-offloads=0x0 --enable-hw-vlan-strip \ - --nb-cores=1 --txd=1024 --rxd=1024 + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x3 -n 1 -a 0000:04:00.0 \ + -- -i --tx-offloads=0x0 --enable-hw-vlan-strip --nb-cores=1 --txd=1024 --rxd=1024 testpmd>set fwd mac testpmd>start @@ -102,14 +105,17 @@ Test Case 2: pvp test with virtio 0.95 normal path 5. Stop port at vhost side by below command and re-calculate the average throughput,verify the throughput is zero after port stop:: testpmd>stop - testpmd>show port stats all + testpmd>port stop 0 + testpmd>show port stats 0 6. Restart port at vhost side by below command and re-calculate the average throughput,verify the throughput is not zero after port restart:: + testpmd>clear port stats all + testpmd>port start all testpmd>start - testpmd>show port stats all + testpmd>show port stats 0 -Test Case 3: pvp test with virtio 0.95 vrctor_rx path +Test Case 3: pvp test with virtio 0.95 vector_rx path ===================================================== 1. Bind 1 NIC port to vfio-pci, then launch testpmd by below command:: @@ -136,8 +142,8 @@ Test Case 3: pvp test with virtio 0.95 vrctor_rx path 3. On VM, bind virtio net to vfio-pci and run testpmd without ant tx-offloads:: - ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x3 -n 3 -a 0000:04:00.0,vectorized=1 -- -i \ - --nb-cores=1 --txd=1024 --rxd=1024 + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x3 -n 1 -a 0000:04:00.0,vectorized=1 \ + -- -i --nb-cores=1 --txd=1024 --rxd=1024 testpmd>set fwd mac testpmd>start @@ -148,12 +154,15 @@ Test Case 3: pvp test with virtio 0.95 vrctor_rx path 5. Stop port at vhost side by below command and re-calculate the average throughput,verify the throughput is zero after port stop:: testpmd>stop - testpmd>show port stats all + testpmd>port stop 0 + testpmd>show port stats 0 6. Restart port at vhost side by below command and re-calculate the average throughput,verify the throughput is not zero after port restart:: + testpmd>clear port stats all + testpmd>port start all testpmd>start - testpmd>show port stats all + testpmd>show port stats 0 Test Case 4: pvp test with virtio 1.0 mergeable path ==================================================== @@ -182,8 +191,8 @@ Test Case 4: pvp test with virtio 1.0 mergeable path 3. On VM, bind virtio net to vfio-pci and run testpmd:: - ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x3 -n 3 -- -i \ - --nb-cores=1 --txd=1024 --rxd=1024 + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x3 -n 1 -a 0000:04:00.0 \ + -- -i --nb-cores=1 --txd=1024 --rxd=1024 testpmd>set fwd mac testpmd>start @@ -194,12 +203,15 @@ Test Case 4: pvp test with virtio 1.0 mergeable path 5. Stop port at vhost side by below command and re-calculate the average throughput,verify the throughput is zero after port stop:: testpmd>stop - testpmd>show port stats all + testpmd>port stop 0 + testpmd>show port stats 0 6. Restart port at vhost side by below command and re-calculate the average throughput,verify the throughput is not zero after port restart:: + testpmd>clear port stats all + testpmd>port start all testpmd>start - testpmd>show port stats all + testpmd>show port stats 0 Test Case 5: pvp test with virtio 1.0 normal path ================================================= @@ -228,8 +240,8 @@ Test Case 5: pvp test with virtio 1.0 normal path 3. On VM, bind virtio net to vfio-pci and run testpmd with tx-offloads:: - ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x3 -n 4 -- -i --tx-offloads=0x0 --enable-hw-vlan-strip\ - --nb-cores=1 --txd=1024 --rxd=1024 + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x3 -n 1 -a 0000:04:00.0 \ + -- -i --tx-offloads=0x0 --enable-hw-vlan-strip --nb-cores=1 --txd=1024 --rxd=1024 testpmd>set fwd mac testpmd>start @@ -240,14 +252,17 @@ Test Case 5: pvp test with virtio 1.0 normal path 5. Stop port at vhost side by below command and re-calculate the average throughput,verify the throughput is zero after port stop:: testpmd>stop - testpmd>show port stats all + testpmd>port stop 0 + testpmd>show port stats 0 6. Restart port at vhost side by below command and re-calculate the average throughput,verify the throughput is not zero after port restart:: + testpmd>clear port stats all + testpmd>port start all testpmd>start - testpmd>show port stats all + testpmd>show port stats 0 -Test Case 6: pvp test with virtio 1.0 vrctor_rx path +Test Case 6: pvp test with virtio 1.0 vector_rx path ==================================================== 1. Bind 1 NIC port to vfio-pci, then launch testpmd by below command:: @@ -274,8 +289,8 @@ Test Case 6: pvp test with virtio 1.0 vrctor_rx path 3. On VM, bind virtio net to vfio-pci and run testpmd without tx-offloads:: - ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x3 -n 3 -a 0000:04:00.0,vectorized=1 -- -i \ - --nb-cores=1 --txd=1024 --rxd=1024 + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x3 -n 1 -a 0000:04:00.0,vectorized=1 \ + -- -i --nb-cores=1 --txd=1024 --rxd=1024 testpmd>set fwd mac testpmd>start @@ -286,12 +301,15 @@ Test Case 6: pvp test with virtio 1.0 vrctor_rx path 5. Stop port at vhost side by below command and re-calculate the average throughput,verify the throughput is zero after port stop:: testpmd>stop - testpmd>show port stats all + testpmd>port stop 0 + testpmd>show port stats 0 6. Restart port at vhost side by below command and re-calculate the average throughput,verify the throughput is not zero after port restart:: + testpmd>clear port stats all + testpmd>port start all testpmd>start - testpmd>show port stats all + testpmd>show port stats 0 Test Case 7: pvp test with virtio 1.1 mergeable path ==================================================== @@ -320,8 +338,8 @@ Test Case 7: pvp test with virtio 1.1 mergeable path 3. On VM, bind virtio net to vfio-pci and run testpmd:: - ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x3 -n 3 -- -i \ - --nb-cores=1 --txd=1024 --rxd=1024 + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x3 -n 1 -a 0000:04:00.0 \ + -- -i --nb-cores=1 --txd=1024 --rxd=1024 testpmd>set fwd mac testpmd>start @@ -332,12 +350,15 @@ Test Case 7: pvp test with virtio 1.1 mergeable path 5. Stop port at vhost side by below command and re-calculate the average throughput,verify the throughput is zero after port stop:: testpmd>stop - testpmd>show port stats all + testpmd>port stop 0 + testpmd>show port stats 0 6. Restart port at vhost side by below command and re-calculate the average throughput,verify the throughput is not zero after port restart:: + testpmd>clear port stats all + testpmd>port start all testpmd>start - testpmd>show port stats all + testpmd>show port stats 0 Test Case 8: pvp test with virtio 1.1 normal path ================================================= @@ -366,8 +387,8 @@ Test Case 8: pvp test with virtio 1.1 normal path 3. On VM, bind virtio net to vfio-pci and run testpmd with tx-offloads:: - ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x3 -n 4 -- -i --tx-offloads=0x0 --enable-hw-vlan-strip\ - --nb-cores=1 --txd=1024 --rxd=1024 + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x3 -n 1 -a 0000:04:00.0 \ + -- -i --tx-offloads=0x0 --enable-hw-vlan-strip --nb-cores=1 --txd=1024 --rxd=1024 testpmd>set fwd mac testpmd>start @@ -378,14 +399,17 @@ Test Case 8: pvp test with virtio 1.1 normal path 5. Stop port at vhost side by below command and re-calculate the average throughput,verify the throughput is zero after port stop:: testpmd>stop - testpmd>show port stats all + testpmd>port stop 0 + testpmd>show port stats 0 6. Restart port at vhost side by below command and re-calculate the average throughput,verify the throughput is not zero after port restart:: + testpmd>clear port stats all + testpmd>port start all testpmd>start - testpmd>show port stats all + testpmd>show port stats 0 -Test Case 9: pvp test with virtio 1.1 vrctor_rx path +Test Case 9: pvp test with virtio 1.1 vector_rx path ==================================================== 1. Bind 1 NIC port to vfio-pci, then launch testpmd by below command:: @@ -412,8 +436,8 @@ Test Case 9: pvp test with virtio 1.1 vrctor_rx path 3. On VM, bind virtio net to vfio-pci and run testpmd without tx-offloads:: - ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x3 -n 3 -a 0000:04:00.0,vectorized=1 -- -i \ - --nb-cores=1 --txd=1024 --rxd=1024 + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x3 -n 1 -a 0000:04:00.0,vectorized=1 \ + -- -i --nb-cores=1 --txd=1024 --rxd=1024 testpmd>set fwd mac testpmd>start @@ -424,15 +448,18 @@ Test Case 9: pvp test with virtio 1.1 vrctor_rx path 5. Stop port at vhost side by below command and re-calculate the average throughput,verify the throughput is zero after port stop:: testpmd>stop - testpmd>show port stats all + testpmd>port stop 0 + testpmd>show port stats 0 6. Restart port at vhost side by below command and re-calculate the average throughput,verify the throughput is not zero after port restart:: + testpmd>clear port stats all + testpmd>port start all testpmd>start - testpmd>show port stats all + testpmd>show port stats 0 -Test Case 10: pvp test with virtio 1.0 mergeable path restart 100 times -======================================================================= +Test Case 10: pvp test with virtio 1.0 mergeable path restart 10 times +====================================================================== 1. Bind 1 NIC port to vfio-pci, then launch testpmd by below command:: @@ -458,8 +485,8 @@ Test Case 10: pvp test with virtio 1.0 mergeable path restart 100 times 3. On VM, bind virtio net to vfio-pci and run testpmd:: - ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x3 -n 3 -- -i \ - --nb-cores=1 --txd=1024 --rxd=1024 + ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0x3 -n 1 -a 0000:04:00.0 \ + -- -i --nb-cores=1 --txd=1024 --rxd=1024 testpmd>set fwd mac testpmd>start @@ -470,11 +497,14 @@ Test Case 10: pvp test with virtio 1.0 mergeable path restart 100 times 5. Stop port at vhost side by below command and re-calculate the average throughput,verify the throughput is zero after port stop:: testpmd>stop - testpmd>show port stats all + testpmd>port stop 0 + testpmd>show port stats 0 6. Restart port at vhost side by below command and re-calculate the average throughput,verify the throughput is not zero after port restart:: + testpmd>clear port stats all + testpmd>port start all testpmd>start - testpmd>show port stats all + testpmd>show port stats 0 -7. Rerun steps 4-6 100 times to check stability. +7. Rerun steps 4-6 10 times to check stability. -- 2.25.1