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 18DB0A034F; Wed, 31 Mar 2021 07:41:38 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E3DF54069E; Wed, 31 Mar 2021 07:41:37 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 64CEF40141 for ; Wed, 31 Mar 2021 07:41:36 +0200 (CEST) IronPort-SDR: VWAB7KmaP8unXwx7PbFh290IMMEHsNkCpVCnRtgnwxg5rhMGrkJGHbXJbIEmdFWVxrscJ9koPz nYEqHzhW8uoQ== X-IronPort-AV: E=McAfee;i="6000,8403,9939"; a="179464186" X-IronPort-AV: E=Sophos;i="5.81,291,1610438400"; d="scan'208";a="179464186" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Mar 2021 22:41:35 -0700 IronPort-SDR: 9gQ4ZG23F8/beiARaApJg221VMuXCfYHVHrSbrS4eQOK+rptJRWvjHELDNYn4mo6/j5p+XagL/ SewqjP4s4MIQ== X-IronPort-AV: E=Sophos;i="5.81,291,1610438400"; d="scan'208";a="418501803" Received: from unknown (HELO localhost.localdomain) ([10.240.183.222]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Mar 2021 22:41:33 -0700 From: Ling Wei To: dts@dpdk.org Cc: Ling Wei Date: Wed, 31 Mar 2021 13:40:02 +0800 Message-Id: <20210331054002.602876-1-weix.ling@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V2] tests/vhost_user_live_migration: delete upsupport zero-copy parameter 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 Sender: "dts" As DPDK community has removed support dequeue-zero-copy feature in 20.11,so remove dequeue-zero-copy parameter when start testpmd. Signed-off-by: Ling Wei --- test_plans/vhost_user_live_migration_test_plan.rst | 12 ++++++------ tests/TestSuite_vhost_user_live_migration.py | 7 ++----- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/test_plans/vhost_user_live_migration_test_plan.rst b/test_plans/vhost_user_live_migration_test_plan.rst index 22ff76d5..7ee5fa87 100644 --- a/test_plans/vhost_user_live_migration_test_plan.rst +++ b/test_plans/vhost_user_live_migration_test_plan.rst @@ -164,7 +164,7 @@ On the backup server, run the vhost testpmd on the host and launch VM: backup server # ssh -p 5555 127.0.0.1 backup VM # screen -r vm -Test Case 2: migrate with split ring virtio-pmd zero-copy enabled +Test Case 2: migrate with split ring virtio-pmd enabled ================================================================= On host server side: @@ -177,7 +177,7 @@ On host server side: 2. Bind host port to igb_uio and start testpmd with vhost port,note not start vhost port before launching qemu:: host server# ./tools/dpdk-devbind.py -b igb_uio 82:00.1 - host server# ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xc0000 -n 4 --vdev 'eth_vhost0,iface=./vhost-net,queues=1,dequeue-zero-copy=1' -- -i + host server# ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xc0000 -n 4 --vdev 'eth_vhost0,iface=./vhost-net,queues=1' -- -i 3. Start VM on host, here we set 5432 as the serial port, 3333 as the qemu monitor port, 5555 as the SSH port:: @@ -199,7 +199,7 @@ On the backup server, run the vhost testpmd on the host and launch VM: backup server # mkdir /mnt/huge backup server # mount -t hugetlbfs hugetlbfs /mnt/huge backup server # ./tools/dpdk-devbind.py -b igb_uio 82:00.0 - backup server # ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xc0000 -n 4 --vdev 'eth_vhost0,iface=./vhost-net,queues=1,dequeue-zero-copy=1' -- -i + backup server # ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xc0000 -n 4 --vdev 'eth_vhost0,iface=./vhost-net,queues=1' -- -i 5. Launch VM on the backup server, the script is similar to host, need add " -incoming tcp:0:4444 " for live migration and make sure the VM image is the NFS mounted folder, VM image is the exact one on host server:: @@ -544,7 +544,7 @@ On the backup server, run the vhost testpmd on the host and launch VM: backup server # ssh -p 5555 127.0.0.1 backup VM # screen -r vm -Test Case 6: migrate with packed ring virtio-pmd zero-copy enabled +Test Case 6: migrate with packed ring virtio-pmd enabled ================================================================== On host server side: @@ -557,7 +557,7 @@ On host server side: 2. Bind host port to igb_uio and start testpmd with vhost port,note not start vhost port before launching qemu:: host server# ./tools/dpdk-devbind.py -b igb_uio 82:00.1 - host server# ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xc0000 -n 4 --vdev 'eth_vhost0,iface=./vhost-net,queues=1,dequeue-zero-copy=1' -- -i + host server# ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xc0000 -n 4 --vdev 'eth_vhost0,iface=./vhost-net,queues=1' -- -i 3. Start VM on host, here we set 5432 as the serial port, 3333 as the qemu monitor port, 5555 as the SSH port:: @@ -579,7 +579,7 @@ On the backup server, run the vhost testpmd on the host and launch VM: backup server # mkdir /mnt/huge backup server # mount -t hugetlbfs hugetlbfs /mnt/huge backup server # ./tools/dpdk-devbind.py -b igb_uio 82:00.0 - backup server # ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xc0000 -n 4 --vdev 'eth_vhost0,iface=./vhost-net,queues=1,dequeue-zero-copy=1' -- -i + backup server # ./x86_64-native-linuxapp-gcc/app/testpmd -c 0xc0000 -n 4 --vdev 'eth_vhost0,iface=./vhost-net,queues=1' -- -i 5. Launch VM on the backup server, the script is similar to host, need add " -incoming tcp:0:4444 " for live migration and make sure the VM image is the NFS mounted folder, VM image is the exact one on host server:: diff --git a/tests/TestSuite_vhost_user_live_migration.py b/tests/TestSuite_vhost_user_live_migration.py index 6d524db7..f73411e5 100644 --- a/tests/TestSuite_vhost_user_live_migration.py +++ b/tests/TestSuite_vhost_user_live_migration.py @@ -142,16 +142,13 @@ class TestVhostUserLiveMigration(TestCase): self.verify(len(self.core_list0) >= core_number and len(self.core_list1) >= core_number, 'There have not enough cores to start testpmd on duts') - def launch_testpmd_as_vhost_on_both_dut(self, zero_copy=False): + def launch_testpmd_as_vhost_on_both_dut(self): """ start testpmd as vhost user on host_dut and backup_dut """ self.get_core_list() - zero_copy_str = '' - if zero_copy is True: - zero_copy_str = ',dequeue-zero-copy=1' testcmd = self.testpmd_path + " " - vdev = ['eth_vhost0,iface=%s/vhost-net,queues=%d%s' % (self.base_dir, self.queue_number, zero_copy_str)] + vdev = ['eth_vhost0,iface=%s/vhost-net,queues=%d' % (self.base_dir, self.queue_number)] para = " -- -i --nb-cores=%d --rxq=%d --txq=%d" % (self.queue_number, self.queue_number, self.queue_number) eal_params_first = self.dut.create_eal_parameters(cores=self.core_list0, prefix='vhost', ports=[self.host_pci_info], vdevs=vdev) eal_params_secondary = self.dut.create_eal_parameters(cores=self.core_list1, prefix='vhost', ports=[self.backup_pci_info], vdevs=vdev) -- 2.25.1