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 B57D642A02; Wed, 26 Apr 2023 12:28:36 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BAE7942B8C; Wed, 26 Apr 2023 12:28:35 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id D6881410FA for ; Wed, 26 Apr 2023 12:28:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1682504914; x=1714040914; h=from:to:cc:subject:date:message-id; bh=E11f5w9lSsrklqtvcpi8mfNuCQCfSrmHYTsJxk1SyIk=; b=MuK0XUpOJzjIEBB409ZVaZdRZzgAsMdsw1zN4KLXp64w2zazOsEMR6yC DeYtSuTVQ+OAynJbgs8eitIxBcEcrkFtD0jBET+rmJhxyNfbEAEFnR7Ol teg+XlUWZE4w+6s9c9rNIEE+YK5K9lIYQFDCzoOBUl4YaNOJX1Xd72Uzs tR/l4ULmIIzNxEwVryC2CNIAylj6ycjAUwYE0EzLUPfcPJ4dmsvKQPErQ cyuDYUNn4RDL5fvaCELP6N5qw4yCABuIVsVTp0+wQfZd/0myE4ayh5Nu5 2sdm3PjIelRrn2AmA1QlOIrik2zaQnePMzgKVzWIN4ELiqK8FQoevubA7 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10691"; a="331293122" X-IronPort-AV: E=Sophos;i="5.99,227,1677571200"; d="scan'208";a="331293122" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Apr 2023 03:28:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10691"; a="693891977" X-IronPort-AV: E=Sophos;i="5.99,227,1677571200"; d="scan'208";a="693891977" Received: from unknown (HELO localhost.localdomain) ([10.239.252.15]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Apr 2023 03:28:31 -0700 From: Dukai Yuan To: dts@dpdk.org Cc: Dukai Yuan Subject: [dts][PATCH V1] tests/vm2vm_virtio_net_perf_cbdma & vswitch_sample_cbdma: Optimize the Secure Copy file size Date: Wed, 26 Apr 2023 18:22:56 +0800 Message-Id: <20230426102256.23323-1-dukaix.yuan@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 Secure Copy (scp) is used to verify whether the vm2vm established connection successful. 1MB file size is too small, which may cause verification failure. So,change file size from 1MB to 10MB. Signed-off-by: Dukai Yuan --- .../TestSuite_vm2vm_virtio_net_perf_cbdma.py | 28 +++++++++---------- tests/TestSuite_vswitch_sample_cbdma.py | 2 +- tests/virtio_common.py | 4 +-- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/tests/TestSuite_vm2vm_virtio_net_perf_cbdma.py b/tests/TestSuite_vm2vm_virtio_net_perf_cbdma.py index 8fece79f..176a25af 100644 --- a/tests/TestSuite_vm2vm_virtio_net_perf_cbdma.py +++ b/tests/TestSuite_vm2vm_virtio_net_perf_cbdma.py @@ -475,7 +475,7 @@ class TestVM2VMVirtioNetPerfCbdma(TestCase): self.BC.config_2_vms_ip() self.BC.config_2_vms_combined(combined=8) self.BC.check_ping_between_2_vms() - self.BC.check_scp_file_between_2_vms(file_size=1) + self.BC.check_scp_file_between_2_vms(file_size=10) self.BC.run_iperf_test_between_2_vms() self.BC.check_iperf_result_between_2_vms() @@ -528,7 +528,7 @@ class TestVM2VMVirtioNetPerfCbdma(TestCase): ) for _ in range(5): self.BC.check_ping_between_2_vms() - self.BC.check_scp_file_between_2_vms(file_size=1) + self.BC.check_scp_file_between_2_vms(file_size=10) self.BC.run_iperf_test_between_2_vms() self.BC.check_iperf_result_between_2_vms() @@ -547,7 +547,7 @@ class TestVM2VMVirtioNetPerfCbdma(TestCase): ) self.BC.config_2_vms_combined(combined=8) self.BC.check_ping_between_2_vms() - self.BC.check_scp_file_between_2_vms(file_size=1) + self.BC.check_scp_file_between_2_vms(file_size=10) self.BC.run_iperf_test_between_2_vms() self.BC.check_iperf_result_between_2_vms() @@ -741,7 +741,7 @@ class TestVM2VMVirtioNetPerfCbdma(TestCase): self.BC.config_2_vms_ip() self.BC.config_2_vms_combined(combined=16) self.BC.check_ping_between_2_vms() - self.BC.check_scp_file_between_2_vms(file_size=1) + self.BC.check_scp_file_between_2_vms(file_size=10) self.BC.run_iperf_test_between_2_vms() self.BC.check_iperf_result_between_2_vms() @@ -871,12 +871,12 @@ class TestVM2VMVirtioNetPerfCbdma(TestCase): self.BC.config_2_vms_ip() self.BC.config_2_vms_combined(combined=8) self.BC.check_ping_between_2_vms() - self.BC.check_scp_file_between_2_vms(file_size=1) + self.BC.check_scp_file_between_2_vms(file_size=10) self.BC.run_iperf_test_between_2_vms() self.BC.check_iperf_result_between_2_vms() for _ in range(5): self.BC.check_ping_between_2_vms() - self.BC.check_scp_file_between_2_vms(file_size=1) + self.BC.check_scp_file_between_2_vms(file_size=10) self.BC.run_iperf_test_between_2_vms() self.BC.check_iperf_result_between_2_vms() @@ -961,12 +961,12 @@ class TestVM2VMVirtioNetPerfCbdma(TestCase): self.BC.config_2_vms_ip() self.BC.config_2_vms_combined(combined=8) self.BC.check_ping_between_2_vms() - self.BC.check_scp_file_between_2_vms(file_size=1) + self.BC.check_scp_file_between_2_vms(file_size=10) self.BC.run_iperf_test_between_2_vms() self.BC.check_iperf_result_between_2_vms() for _ in range(5): self.BC.check_ping_between_2_vms() - self.BC.check_scp_file_between_2_vms(file_size=1) + self.BC.check_scp_file_between_2_vms(file_size=10) self.BC.run_iperf_test_between_2_vms() self.BC.check_iperf_result_between_2_vms() @@ -1143,12 +1143,12 @@ class TestVM2VMVirtioNetPerfCbdma(TestCase): self.BC.config_2_vms_ip() self.BC.config_2_vms_combined(combined=16) self.BC.check_ping_between_2_vms() - self.BC.check_scp_file_between_2_vms(file_size=1) + self.BC.check_scp_file_between_2_vms(file_size=10) self.BC.run_iperf_test_between_2_vms() self.BC.check_iperf_result_between_2_vms() for _ in range(5): self.BC.check_ping_between_2_vms() - self.BC.check_scp_file_between_2_vms(file_size=1) + self.BC.check_scp_file_between_2_vms(file_size=10) self.BC.run_iperf_test_between_2_vms() self.BC.check_iperf_result_between_2_vms() @@ -1180,12 +1180,12 @@ class TestVM2VMVirtioNetPerfCbdma(TestCase): self.start_vms(server_mode=False, vm_queue=1) self.BC.config_2_vms_ip() self.BC.check_ping_between_2_vms() - self.BC.check_scp_file_between_2_vms(file_size=1) + self.BC.check_scp_file_between_2_vms(file_size=10) self.BC.run_iperf_test_between_2_vms() self.BC.check_iperf_result_between_2_vms() for _ in range(5): self.BC.check_ping_between_2_vms() - self.BC.check_scp_file_between_2_vms(file_size=1) + self.BC.check_scp_file_between_2_vms(file_size=10) self.BC.run_iperf_test_between_2_vms() self.BC.check_iperf_result_between_2_vms() @@ -1269,12 +1269,12 @@ class TestVM2VMVirtioNetPerfCbdma(TestCase): self.start_vms(server_mode=False, vm_queue=8) self.BC.config_2_vms_ip() self.BC.check_ping_between_2_vms() - self.BC.check_scp_file_between_2_vms(file_size=1) + self.BC.check_scp_file_between_2_vms(file_size=10) self.BC.run_iperf_test_between_2_vms() self.BC.check_iperf_result_between_2_vms() for _ in range(5): self.BC.check_ping_between_2_vms() - self.BC.check_scp_file_between_2_vms(file_size=1) + self.BC.check_scp_file_between_2_vms(file_size=10) self.BC.run_iperf_test_between_2_vms() self.BC.check_iperf_result_between_2_vms() diff --git a/tests/TestSuite_vswitch_sample_cbdma.py b/tests/TestSuite_vswitch_sample_cbdma.py index 783275f2..feb3b4f2 100644 --- a/tests/TestSuite_vswitch_sample_cbdma.py +++ b/tests/TestSuite_vswitch_sample_cbdma.py @@ -649,7 +649,7 @@ class TestVswitchSampleCBDMA(TestCase): self.vm0_pmd = PmdOutput(self.vm_dut[0]) self.vm1_pmd = PmdOutput(self.vm_dut[1]) self.BC.config_2_vms_ip() - self.BC.check_scp_file_between_2_vms(file_size=1) + self.BC.check_scp_file_between_2_vms(file_size=10) self.BC.run_iperf_test_between_2_vms() iperfdata = self.BC.check_iperf_result_between_2_vms() return iperfdata diff --git a/tests/virtio_common.py b/tests/virtio_common.py index cf1bbe43..eec8999b 100644 --- a/tests/virtio_common.py +++ b/tests/virtio_common.py @@ -87,7 +87,7 @@ class basic_common(object): fp.write(data) fp.close() - # scp file from tester on VM0 + # scp file from tester to VM0 out = self.test_case.vm_dut[0].send_command( "scp root@%s:/tmp/payload /tmp" % self.tester_ip, timeout=5 ) @@ -95,7 +95,7 @@ class basic_common(object): self.test_case.vm_dut[0].send_command("yes", timeout=3) self.test_case.vm_dut[0].send_command(self.tester_passwd, timeout=3) - # scp file from VM0 on VM1 + # scp file from VM0 to VM1 out = self.test_case.vm_dut[1].send_command( "scp root@%s:/tmp/payload /tmp" % self.vm0_ip, timeout=5 ) -- 2.17.1