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 9C460A00C5; Thu, 30 Apr 2020 07:25:29 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 666D61D8E5; Thu, 30 Apr 2020 07:25:29 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 0ED021D8E2 for ; Thu, 30 Apr 2020 07:25:26 +0200 (CEST) IronPort-SDR: N75mk0XnjTTSWaCHhUVcnnBNRsK2TYeE4SmlmksP6IvsgGvrb/Rp2j+KRrv+N4uohJtpDniQ75 scTeMu8CiPtA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2020 22:25:26 -0700 IronPort-SDR: 4FJ7PvQudQirMp7Dx1pkE1rkI0/0jV2H16neI+kVnZcbmlxWj7gSr08rWx0R9EOgX6PKRsALmW svCSE6ofPhMQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,334,1583222400"; d="scan'208";a="432832181" Received: from dpdk-yinan-purley.sh.intel.com ([10.67.117.227]) by orsmga005.jf.intel.com with ESMTP; 29 Apr 2020 22:25:24 -0700 From: Yinan To: dts@dpdk.org Cc: Wang Yinan Date: Wed, 29 Apr 2020 22:19:21 +0000 Message-Id: <20200429221921.28021-1-yinan.wang@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH v1] tests: update test commonds for vectorized cases in TestSuite_loopback_multi_queues.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 --- tests/TestSuite_loopback_multi_queues.py | 28 +++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/tests/TestSuite_loopback_multi_queues.py b/tests/TestSuite_loopback_multi_queues.py index 174ce01..029c1f0 100644 --- a/tests/TestSuite_loopback_multi_queues.py +++ b/tests/TestSuite_loopback_multi_queues.py @@ -48,7 +48,7 @@ class TestLoopbackMultiQueues(TestCase): """ Run at the start of each test suite. """ - self.frame_sizes = [64, 128, 256, 512, 1024, 1518] + self.frame_sizes = [64, 1518] self.verify_queue = [1, 8] self.dut_ports = self.dut.get_ports() port_socket = self.dut.get_numa_id(self.dut_ports[0]) @@ -283,7 +283,7 @@ class TestLoopbackMultiQueues(TestCase): """ performance for Vhost PVP Normal Path. """ - virtio_pmd_arg = {"version": "packed_vq=0,in_order=0,mrg_rxbuf=0", + virtio_pmd_arg = {"version": "packed_vq=0,in_order=0,mrg_rxbuf=0,vectorized=1", "path": "--enable-hw-vlan-strip"} for i in self.verify_queue: self.nb_cores = i @@ -301,7 +301,7 @@ class TestLoopbackMultiQueues(TestCase): """ performance for Vhost PVP Vector_RX Path """ - virtio_pmd_arg = {"version": "packed_vq=0,in_order=0,mrg_rxbuf=0", + virtio_pmd_arg = {"version": "packed_vq=0,in_order=0,mrg_rxbuf=0,vectorized=1", "path": ""} for i in self.verify_queue: self.nb_cores = i @@ -337,8 +337,26 @@ class TestLoopbackMultiQueues(TestCase): """ performance for Vhost PVP Vector_RX Path """ - virtio_pmd_arg = {"version": "packed_vq=1,mrg_rxbuf=0,in_order=1", - "path": ""} + virtio_pmd_arg = {"version": "packed_vq=1,mrg_rxbuf=0,in_order=1,vectorized=1", + "path": "--rx-offloads=0x10 --enable-hw-vlan-strip "} + for i in self.verify_queue: + self.nb_cores = i + self.queue_number = i + self.get_core_mask() + self.start_vhost_testpmd() + self.start_virtio_testpmd(virtio_pmd_arg) + self.send_and_verify("virtio 1.1 inorder non-mergeable") + self.close_all_testpmd() + + self.result_table_print() + self.verify_liner_for_multi_queue() + + def test_loopback_with_virtio11_vectorized_path_multi_queue(self): + """ + performance for Vhost PVP Vector_RX Path + """ + virtio_pmd_arg = {"version": "packed_vq=1,mrg_rxbuf=0,in_order=1,vectorized=1", + "path": "--enable-hw-vlan-strip "} for i in self.verify_queue: self.nb_cores = i self.queue_number = i -- 2.17.1