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 ACF92A00BE; Wed, 29 Apr 2020 04:05:51 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 918E91D6F6; Wed, 29 Apr 2020 04:05:51 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 5EB981C124 for ; Wed, 29 Apr 2020 04:05:50 +0200 (CEST) IronPort-SDR: 7L5gEKblZEh8nMOsg3NSzFQICfZO+QeP+qE4V7XPJ9IwVpucl+23+RITPM/d8OUA8/OWuDhc1P d78ivrI6YU4g== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Apr 2020 19:05:49 -0700 IronPort-SDR: fi/wIkBA5yhZccttRnkN4S938EgOmoteRx1L5isEWHqadY3gDGzmppYRcx+HLp9kcSszGDuzRw 8KRjKCS/lHsg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,329,1583222400"; d="scan'208";a="404890358" Received: from dpdk-yinan-purley.sh.intel.com ([10.67.117.227]) by orsmga004.jf.intel.com with ESMTP; 28 Apr 2020 19:05:48 -0700 From: Yinan To: dts@dpdk.org Cc: Wang Yinan Date: Tue, 28 Apr 2020 18:59:46 +0000 Message-Id: <20200428185946.72742-1-yinan.wang@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH v1] tests: update case due to virtio path selection logic change in TestSuite_loopback_multi_paths_port_restart.py 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" From: Wang Yinan Signed-off-by: Wang Yinan --- ...Suite_loopback_multi_paths_port_restart.py | 23 +++++++++++++++---- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/tests/TestSuite_loopback_multi_paths_port_restart.py b/tests/TestSuite_loopback_multi_paths_port_restart.py index 5f1faad..8d23196 100644 --- a/tests/TestSuite_loopback_multi_paths_port_restart.py +++ b/tests/TestSuite_loopback_multi_paths_port_restart.py @@ -49,7 +49,7 @@ class TestLoopbackPortRestart(TestCase): """ Run at the start of each test suite. """ - self.frame_sizes = [64, 128, 256, 512, 1024, 1518] + self.frame_sizes = [64, 1518] self.core_config = "1S/5C/1T" self.dut_ports = self.dut.get_ports() self.ports_socket = self.dut.get_numa_id(self.dut_ports[0]) @@ -230,7 +230,20 @@ class TestLoopbackPortRestart(TestCase): """ performance for [frame_sizes] and restart port on inorder mergeable path """ - pmd_arg = {"version": "packed_vq=1,mrg_rxbuf=0,in_order=1", + pmd_arg = {"version": "packed_vq=1,mrg_rxbuf=0,in_order=1,vectorized=1", + "path": "--rx-offloads=0x10 --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("packed ring inorder non-mergeable", frame_size) + self.close_all_testpmd() + self.result_table_print() + + def test_lookback_test_with_packed_ring_vectorized_path(self): + """ + performance for [frame_sizes] and restart port on inorder mergeable path + """ + pmd_arg = {"version": "packed_vq=1,mrg_rxbuf=0,in_order=1,vectorized=1", "path": "--tx-offloads=0x0 --enable-hw-vlan-strip"} for frame_size in self.frame_sizes: self.start_vhost_testpmd() @@ -282,7 +295,7 @@ class TestLoopbackPortRestart(TestCase): """ performance for [frame_sizes] and restart port on virtio normal path """ - pmd_arg = {"version": "packed_vq=0,in_order=0,mrg_rxbuf=0", + pmd_arg = {"version": "packed_vq=0,in_order=0,mrg_rxbuf=0,vectorized=1", "path": "--tx-offloads=0x0 --enable-hw-vlan-strip "} for frame_size in self.frame_sizes: self.start_vhost_testpmd() @@ -295,8 +308,8 @@ class TestLoopbackPortRestart(TestCase): """ performance for frame_sizes and restart port on virtio vector rx """ - pmd_arg = {"version": "packed_vq=0,in_order=0,mrg_rxbuf=0 ", - "path": ""} + pmd_arg = {"version": "packed_vq=0,in_order=0,mrg_rxbuf=0,vectorized=1", + "path": "--tx-offloads=0x0 "} for frame_size in self.frame_sizes: self.start_vhost_testpmd() self.start_virtio_user_testpmd(pmd_arg) -- 2.17.1