From patchwork Thu Mar 10 08:39:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ling, WeiX" X-Patchwork-Id: 108642 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 B0F00A00BE; Thu, 10 Mar 2022 09:40:19 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A621C41143; Thu, 10 Mar 2022 09:40:19 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 1642E410FC for ; Thu, 10 Mar 2022 09:40:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646901618; x=1678437618; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=uWTlY4fOwWUqzc/J6CDOKOs/S1BgdQP0nnYYrbLuIJU=; b=frN3mkQDSSNeD/vRcSruAxWtk5nG7R2+ft94TV41Q72Rfj1OVkOmhO1w V1gcqPVAXlz1RmCGvtDxV7vRLisb9rjQe/eqfb5NYKmcv5qDQI9iYMzGe 1u8oMw2kCIOWMkDTEQ7d8hJgt7hINxN5uepd8txY6Wev/B6TX54jurW3a hMF8Qz1h8WFbRp56tU2UA4PKxGN/+KwqUVB+3eCQ4Br+Fl53V3Wck/3Sb F0+AUp7IBUEK2rhj4gpNxTxXs6MZsoAe7CEtMHVSeqEL9nlAJHV1W6qBq U6o6TmjjG45H6Ivo/5J7u5BOBELgyiAEdRqqiDIw5Ey99UWeFSvzbg4Wm Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10281"; a="235801381" X-IronPort-AV: E=Sophos;i="5.90,169,1643702400"; d="scan'208";a="235801381" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Mar 2022 00:39:54 -0800 X-IronPort-AV: E=Sophos;i="5.90,169,1643702400"; d="scan'208";a="688590945" Received: from unknown (HELO localhost.localdomain) ([10.239.251.222]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Mar 2022 00:39:53 -0800 From: Wei Ling To: dts@dpdk.org Cc: Wei Ling Subject: [dts][PATCH V1 1/2] test_plans/vdev_primary_secondary_test_plan: modify testplan by DPDK change Date: Thu, 10 Mar 2022 16:39:49 +0800 Message-Id: <20220310083949.494546-1-weix.ling@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 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 By DPDK change(commit 1c839246f9), no need to modify DPDK code to test, so delete modify DPDK code steps in testplan. Signed-off-by: Wei Ling --- .../vdev_primary_secondary_test_plan.rst | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/test_plans/vdev_primary_secondary_test_plan.rst b/test_plans/vdev_primary_secondary_test_plan.rst index b9ffd030..b98d2d04 100644 --- a/test_plans/vdev_primary_secondary_test_plan.rst +++ b/test_plans/vdev_primary_secondary_test_plan.rst @@ -53,22 +53,6 @@ Prerequisites Assuming that DPDK build has been set up and the multi-process sample applications have been built. It is also assumed that a traffic generator has been configured and plugged in to the NIC ports 0 and 1. -Also need modify l3fwd-power example code and recompile:: - - --- a/examples/l3fwd-power/main.c - +++ b/examples/l3fwd-power/main.c - @@ -245,10 +245,9 @@ uint16_t nb_lcore_params = RTE_DIM(lcore_params_array_default); - - static struct rte_eth_conf port_conf = { - .rxmode = { - - .mq_mode = ETH_MQ_RX_RSS, - + .mq_mode = ETH_MQ_RX_NONE, - .max_rx_pkt_len = RTE_ETHER_MAX_LEN, - .split_hdr_size = 0, - - .offloads = DEV_RX_OFFLOAD_CHECKSUM, - }, - .rx_adv_conf = { - .rss_conf = { Test Methodology ---------------- @@ -142,11 +126,6 @@ between processes, so proper rollback action should be considered. Test Case 1: Virtio-pmd primary and secondary process symmetric test ==================================================================== -SW preparation: Change one line of the symmetric_mp sample and rebuild:: - - vi ./examples/multi_process/symmetric_mp/main.c - -.offloads = DEV_RX_OFFLOAD_CHECKSUM, - 1. Bind one port to vfio-pci, launch testpmd by below command:: .//app/dpdk-testpmd -l 1-6 -n 4 --file-prefix=vhost --vdev 'net_vhost,iface=vhost-net,queues=2,client=1' --vdev 'net_vhost1,iface=vhost-net1,queues=2,client=1' -- -i --nb-cores=4 --rxq=2 --txq=2 --txd=1024 --rxd=1024 From patchwork Thu Mar 10 08:39:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ling, WeiX" X-Patchwork-Id: 108641 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 932A1A00BE; Thu, 10 Mar 2022 09:40:06 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8B0F941141; Thu, 10 Mar 2022 09:40:06 +0100 (CET) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id DF603410FC for ; Thu, 10 Mar 2022 09:40:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646901605; x=1678437605; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=IWH9IGhIxGFNa28JJn4WlE241g0/A41QYBhSrRtJ1Qg=; b=PFfqgY/oieFHRkm4XQXT68LijGwcTeclYvew1xItXPHpsDqoUE+pT8bI OjO1zoxRQlrhp4fAQzyg1E0pf06RquANwZI6gwk+D0iQYerAH4Te4PwsX fyfaCyr+59AzatWiI5pvtPDkt4as01NWNJmqmskzEMCV/CM78usgQc/8y H1IAsQkZE4me9FCCBnJdU+ngUrlficN9kT1v2vGWP1CX403pbWiijsAYG yf66KBSvBKZwLIbhGZoF8XMMNr7lu7504kUpanH7NwJCuS6rFK1B4ygnq YH9H/i5xcBg9MK8nzTQq3x3fhwpRSbt4ufTYqhAX0cNx0B7CDBZakE7NG w==; X-IronPort-AV: E=McAfee;i="6200,9189,10281"; a="315912551" X-IronPort-AV: E=Sophos;i="5.90,169,1643702400"; d="scan'208";a="315912551" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Mar 2022 00:40:03 -0800 X-IronPort-AV: E=Sophos;i="5.90,169,1643702400"; d="scan'208";a="688591036" Received: from unknown (HELO localhost.localdomain) ([10.239.251.222]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Mar 2022 00:40:02 -0800 From: Wei Ling To: dts@dpdk.org Cc: Wei Ling Subject: [dts][PATCH V1 2/2] tests/vdev_primary_secondary: modify testsuite by DPDK change Date: Thu, 10 Mar 2022 16:39:58 +0800 Message-Id: <20220310083958.494604-1-weix.ling@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 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 By DPDK change(commit 1c839246f9), no need to modify DPDK code to test, so delete modify DPDK code steps in testsuite. Signed-off-by: Wei Ling --- tests/TestSuite_vdev_primary_secondary.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/tests/TestSuite_vdev_primary_secondary.py b/tests/TestSuite_vdev_primary_secondary.py index 093cd57c..d436d840 100644 --- a/tests/TestSuite_vdev_primary_secondary.py +++ b/tests/TestSuite_vdev_primary_secondary.py @@ -77,7 +77,6 @@ class TestVdevPrimarySecondary(TestCase): self.dut.send_expect("killall -s INT %s" % self.testpmd_name, "#") self.dut.send_expect("killall -s INT qemu-system-x86_64", "#") - def setup_vm_env(self): """ Create testing environment @@ -103,7 +102,6 @@ class TestVdevPrimarySecondary(TestCase): return True - def launch_testpmd(self): """ launch testpmd @@ -118,7 +116,6 @@ class TestVdevPrimarySecondary(TestCase): self.dut.send_expect("set fwd txonly", "testpmd> ", 120) self.dut.send_expect("start", "testpmd> ", 120) - def launch_examples(self): example_cmd_auto = self.app_symmetric_mp_path + " -l 0 -n %d --proc-type=auto -- -p 3 --num-procs=%d --proc-id=0" example_cmd_secondary = self.app_symmetric_mp_path + " -l 1 -n %d --proc-type=secondary -- -p 3 --num-procs=%d --proc-id=1" @@ -128,19 +125,7 @@ class TestVdevPrimarySecondary(TestCase): time.sleep(3) self.vhost_secondary.send_expect(final_cmd_secondary, "Lcore", 120) - def prepare_symmetric_mp(self): - self.vm_dut.send_expect("cp ./examples/multi_process/symmetric_mp/main.c .", "#") - self.vm_dut.send_expect( - "sed -i '/.offloads = DEV_RX_OFFLOAD_CHECKSUM,/d' ./examples/multi_process/symmetric_mp/main.c", "#") - self.vm_dut.send_expect( - "sed -i 's/ETH_MQ_RX_RSS,/ETH_MQ_RX_NONE,/g' ./examples/multi_process/symmetric_mp/main.c", "#") - out = self.vm_dut.build_dpdk_apps('./examples/multi_process/symmetric_mp') - self.verify("Error" not in out, "compilation symmetric_mp error") - - - def restore_symmetric_mp_env(self): - self.vm_dut.send_expect("\cp ./main.c ./examples/multi_process/symmetric_mp/", "#", 15) out = self.vm_dut.build_dpdk_apps('./examples/multi_process/symmetric_mp') self.verify("Error" not in out, "compilation symmetric_mp error") @@ -148,7 +133,6 @@ class TestVdevPrimarySecondary(TestCase): self.vm_dut.close_session(self.vhost_first) self.vm_dut.close_session(self.vhost_secondary) - def test_Virtio_primary_and_secondary_process(self): # start testpmd self.launch_testpmd() @@ -175,7 +159,6 @@ class TestVdevPrimarySecondary(TestCase): """ Run after each test case. """ - self.restore_symmetric_mp_env() self.close_session() self.vm_dut.kill_all() self.dut.kill_all() @@ -184,8 +167,6 @@ class TestVdevPrimarySecondary(TestCase): self.dut.send_expect("killall -s INT qemu-system-x86_64", "#") time.sleep(2) - - def tear_down_all(self): """ Run after each test suite.