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 0293DA00BE; Wed, 29 Apr 2020 04:14:27 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CE6301D6EF; Wed, 29 Apr 2020 04:14:27 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id CD4701D6A5 for ; Wed, 29 Apr 2020 04:14:25 +0200 (CEST) IronPort-SDR: nm90Qxl1yJBHuENxJFqDRgdmY0zpQuowlM8xzb4GMy1KSGH4cnrSLEKx4CHRtLdoJ2RF/5m7LM Ru6uh6T2azTg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Apr 2020 19:14:24 -0700 IronPort-SDR: P7DmADpzBztmvZA2x1XKqgs9ssckqynVAuUloNlOKWPLcVO8907tv/jSVuIByJi/9xwBmz0g/l 6Oqs4WHe3JoQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,329,1583222400"; d="scan'208";a="276028717" Received: from unknown (HELO xqm-virtio_tester.sh.intel.com) ([10.240.183.52]) by orsmga002.jf.intel.com with ESMTP; 28 Apr 2020 19:14:23 -0700 From: Xiao Qimai To: dts@dpdk.org Cc: Xiao Qimai Date: Wed, 29 Apr 2020 10:07:53 +0800 Message-Id: <1588126073-292482-1-git-send-email-qimaix.xiao@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [PATCH V1]pvp_virtio_user_multi_queues_port_restart: update script to test virtio new path 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" Signed-off-by: Xiao Qimai --- ...te_pvp_virtio_user_multi_queues_port_restart.py | 31 +++++++++------------- 1 file changed, 12 insertions(+), 19 deletions(-) diff --git a/tests/TestSuite_pvp_virtio_user_multi_queues_port_restart.py b/tests/TestSuite_pvp_virtio_user_multi_queues_port_restart.py index 58d603f..d948e15 100644 --- a/tests/TestSuite_pvp_virtio_user_multi_queues_port_restart.py +++ b/tests/TestSuite_pvp_virtio_user_multi_queues_port_restart.py @@ -98,21 +98,14 @@ class TestPVPVirtioUserMultiQueuesPortRestart(TestCase): self.vhost.send_expect("set fwd mac", "testpmd> ", 120) self.vhost.send_expect("start", "testpmd> ", 120) - def start_virtio_user_testpmd(self, flag): + def start_virtio_user_testpmd(self, vdevs, vector_flag=False): """ start testpmd in vm depend on different path """ testcmd = self.dut.target + "/app/testpmd " - vdev = 'net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=2' - if 'packed_ring' in flag: - vdev += ',packed_vq=1' - if 'nonmergeable' in flag or 'vector' in flag: - vdev += ',mrg_rxbuf=0' - if 'inorder' not in flag: - vdev += ',in_order=0' eal_params = self.dut.create_eal_parameters(cores=self.core_list[5:8], prefix='virtio', no_pci=True, - vdevs=[vdev]) - if 'vector' not in flag: + vdevs=[vdevs]) + if vector_flag: para = " -- -i --tx-offloads=0x0 --enable-hw-vlan-strip --rss-ip --nb-cores=2 --rxq=%s --txq=%s --rss-ip" % ( self.queue_number, self.queue_number) else: @@ -219,63 +212,63 @@ class TestPVPVirtioUserMultiQueuesPortRestart(TestCase): def test_perf_pvp_2queues_test_with_packed_ring_mergeable_path(self): self.start_vhost_testpmd() - self.start_virtio_user_testpmd(flag="packed_ring_mergeable") + self.start_virtio_user_testpmd(vdevs='net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=2,packed_vq=1,mrg_rxbuf=1,in_order=0,queue_size=255') self.send_and_verify("packed_ring_mergeable") self.close_all_testpmd() self.result_table_print() def test_perf_pvp_2queues_test_with_packed_ring_nonmergeable_path(self): self.start_vhost_testpmd() - self.start_virtio_user_testpmd(flag="packed_ring_nonmergeable") + self.start_virtio_user_testpmd(vdevs='net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=2,packed_vq=1,mrg_rxbuf=0,in_order=0,queue_size=255') self.send_and_verify("packed_ring_nonmergeable") self.close_all_testpmd() self.result_table_print() def test_perf_pvp_2queues_test_with_split_ring_inorder_mergeable_path(self): self.start_vhost_testpmd() - self.start_virtio_user_testpmd(flag="split_ring_inorder_mergeable") + self.start_virtio_user_testpmd(vdevs='net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=2,in_order=1,mrg_rxbuf=1') self.send_and_verify("split_ring_inorder_mergeable") self.close_all_testpmd() self.result_table_print() def test_perf_pvp_2queues_test_with_split_ring_inorder_nonmergeable_path(self): self.start_vhost_testpmd() - self.start_virtio_user_testpmd(flag="split_ring_inorder_nonmergeable") + self.start_virtio_user_testpmd(vdevs='net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=2,in_order=1,mrg_rxbuf=0,vectorized=1') self.send_and_verify("split_ring_inorder_nonmergeable") self.close_all_testpmd() self.result_table_print() def test_perf_pvp_2queues_test_with_split_ring_mergeable_path(self): self.start_vhost_testpmd() - self.start_virtio_user_testpmd(flag="split_ring_mergeable") + self.start_virtio_user_testpmd(vdevs='net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=2,in_order=0,mrg_rxbuf=1') self.send_and_verify("split_ring_mergeable") self.close_all_testpmd() self.result_table_print() def test_perf_pvp_2queues_test_with_split_ring_nonmergeable_path(self): self.start_vhost_testpmd() - self.start_virtio_user_testpmd(flag="split_ring_nonmergeable") + self.start_virtio_user_testpmd(vdevs='net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=2,in_order=0,mrg_rxbuf=0,vectorized=1') self.send_and_verify("split_ring_nonmergeable") self.close_all_testpmd() self.result_table_print() def test_perf_pvp_2queues_test_with_split_ring_vector_rx_path(self): self.start_vhost_testpmd() - self.start_virtio_user_testpmd(flag="split_ring_vector_rx") + self.start_virtio_user_testpmd(vdevs="net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=2,packed_vq=1,mrg_rxbuf=1,in_order=1,queue_size=255", vector_flag=True) self.send_and_verify("split_ring_vector_rx") self.close_all_testpmd() self.result_table_print() def test_perf_pvp_2queues_test_with_packed_ring_inorder_mergeable_path(self): self.start_vhost_testpmd() - self.start_virtio_user_testpmd(flag="packed_ring_inorder_mergeable") + self.start_virtio_user_testpmd(vdevs="net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=2,packed_vq=1,mrg_rxbuf=0,in_order=1,vectorized=1,queue_size=255") self.send_and_verify("packed_ring_inorder_mergeable") self.close_all_testpmd() self.result_table_print() def test_perf_pvp_2queues_test_with_packed_ring_inorder_nonmergeable_path(self): self.start_vhost_testpmd() - self.start_virtio_user_testpmd(flag="packed_ring_inorder_nonmergeable") + self.start_virtio_user_testpmd(vdevs="net_virtio_user0,mac=00:01:02:03:04:05,path=./vhost-net,queues=2,packed_vq=1,mrg_rxbuf=0,in_order=1,vectorized=1,queue_size=255") self.send_and_verify("packed_ring_inorder_nonmergeable") self.close_all_testpmd() self.result_table_print() -- 1.8.3.1