From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2F054A00E6 for ; Fri, 12 Jul 2019 10:52:23 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B3C661B9AA; Fri, 12 Jul 2019 10:52:22 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id BE5EB1B9A6 for ; Fri, 12 Jul 2019 10:52:20 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Jul 2019 01:52:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,481,1557212400"; d="scan'208";a="186561418" Received: from ubuntu.sh.intel.com ([10.67.119.68]) by fmsmga001.fm.intel.com with ESMTP; 12 Jul 2019 01:52:18 -0700 From: lihong To: dts@dpdk.org Cc: lihong Date: Fri, 12 Jul 2019 09:29:53 +0800 Message-Id: <1562894993-15581-1-git-send-email-lihongx.ma@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [dts] [PATCH V1] tests/loopback_multi_paths_port_restart: update according to plan X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 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" 1. remove testcase of virtio1.1 inorder path 2. add command 'set burst 1' when vhost port restart 3. modify prefix of testcase from test_perf to test Signed-off-by: lihong --- .../TestSuite_loopback_multi_paths_port_restart.py | 39 ++++++++-------------- 1 file changed, 13 insertions(+), 26 deletions(-) diff --git a/tests/TestSuite_loopback_multi_paths_port_restart.py b/tests/TestSuite_loopback_multi_paths_port_restart.py index 797be95..b1bd32f 100644 --- a/tests/TestSuite_loopback_multi_paths_port_restart.py +++ b/tests/TestSuite_loopback_multi_paths_port_restart.py @@ -33,10 +33,9 @@ """ DPDK Test suite. -Benchmark Vhost loopback for 8 RX/TX PATHs. +Benchmark Vhost loopback for 7 RX/TX PATHs. Includes Mergeable, Normal, Vector_RX,Inorder_mergeable, -Inorder_no_mergeable, VIRTIO1.1_mergeable, VIRTIO1.1_normal Path, -VIRTIO1.1_inorder_normal Path. +Inorder_no_mergeable, VIRTIO1.1_mergeable, VIRTIO1.1_normal Path. """ import utils import time @@ -144,7 +143,8 @@ class TestLoopbackPortRestart(TestCase): self.vhost.send_expect("clear port stats all", "testpmd> ", 120) self.vhost.send_expect("port start all", "testpmd> ", 120) self.check_port_link_status_after_port_restart() - self.vhost.send_expect("start tx_first 32", "testpmd> ", 120) + self.vhost.send_expect("set burst 1", "testpmd> ", 120) + self.vhost.send_expect("start tx_first 1", "testpmd> ", 120) def update_table_info(self, case_info, frame_size, Mpps, Cycle): results_row = [frame_size] @@ -180,7 +180,7 @@ class TestLoopbackPortRestart(TestCase): self.port_restart() Mpps = self.calculate_avg_throughput() - self.update_table_info(case_info, frame_size, Mpps, "After Restart") + self.update_table_info(case_info, frame_size, Mpps, "After Restart and set burst to 1") def close_all_testpmd(self): """ @@ -196,7 +196,7 @@ class TestLoopbackPortRestart(TestCase): self.dut.close_session(self.vhost) self.dut.close_session(self.virtio_user) - def test_perf_vhost_loopback_virtio11_mergeable_mac(self): + def test_vhost_loopback_virtio11_mergeable_mac(self): """ performance for [frame_sizes] and restart port on virtio1.1 mergeable path """ @@ -209,7 +209,7 @@ class TestLoopbackPortRestart(TestCase): self.close_all_testpmd() self.result_table_print() - def test_perf_vhost_loopback_virtio11_normal_mac(self): + def test_vhost_loopback_virtio11_normal_mac(self): """ performance for [frame_sizes] and restart port ob virtio1.1 normal path """ @@ -222,20 +222,7 @@ class TestLoopbackPortRestart(TestCase): self.close_all_testpmd() self.result_table_print() - def test_perf_vhost_loopback_virtio11_inorder_mac(self): - """ - performance for [frame_sizes] and restart port on virtio1.1 inorder path - """ - pmd_arg = {"version": "packed_vq=1,in_order=1,mrg_rxbuf=0 ", - "path": "--tx-offloads=0x0 --enable-hw-vlan-strip "} - for frame_size in self.frame_sizes: - self.start_vhost_testpmd() - self.start_virtio_user_testpmd(pmd_arg) - self.send_and_verify("virtio1.1 inorder", frame_size) - self.close_all_testpmd() - self.result_table_print() - - def test_perf_vhost_loopback_virtiouser_inorder_mergeable_mac(self): + def test_vhost_loopback_virtiouser_inorder_mergeable_mac(self): """ performance for [frame_sizes] and restart port on inorder mergeable path """ @@ -248,7 +235,7 @@ class TestLoopbackPortRestart(TestCase): self.close_all_testpmd() self.result_table_print() - def test_perf_vhost_loopback_virtiouser_inorder_mergeable_off_mac(self): + def test_vhost_loopback_virtiouser_inorder_mergeable_off_mac(self): """ performance for [frame_sizes] and restart port on inorder normal path """ @@ -261,7 +248,7 @@ class TestLoopbackPortRestart(TestCase): self.close_all_testpmd() self.result_table_print() - def test_perf_vhost_loopback_virtiouser_mergeable_mac(self): + def test_vhost_loopback_virtiouser_mergeable_mac(self): """ performance for [frame_sizes] and restart port on virtio mergeable path """ @@ -274,7 +261,7 @@ class TestLoopbackPortRestart(TestCase): self.close_all_testpmd() self.result_table_print() - def test_perf_vhost_loopback_virtiouser_normal_mac(self): + def test_vhost_loopback_virtiouser_normal_mac(self): """ performance for [frame_sizes] and restart port on virtio normal path """ @@ -287,12 +274,12 @@ class TestLoopbackPortRestart(TestCase): self.close_all_testpmd() self.result_table_print() - def test_perf_vhost_loopback_virtiouser_vector_rx_mac(self): + def test_vhost_loopback_virtiouser_vector_rx_mac(self): """ performance for frame_sizes and restart port on virtio vector rx """ pmd_arg = {"version": "packed_vq=0,in_order=0,mrg_rxbuf=0 ", - "path": "--tx-offloads=0x0 "} + "path": ""} for frame_size in self.frame_sizes: self.start_vhost_testpmd() self.start_virtio_user_testpmd(pmd_arg) -- 2.7.4