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 32617A058A; Wed, 25 Mar 2020 09:17:35 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2CA711C036; Wed, 25 Mar 2020 09:17:35 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 421551C02B for ; Wed, 25 Mar 2020 09:17:33 +0100 (CET) IronPort-SDR: xu902S7hrIfVPtJQtSXAHNrxlRbgNcLyi0nFGxguImNvZ2OrT5fO1T/gwghvhRMEdFGcEkSYWg VY0lKzyYFuow== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Mar 2020 01:17:32 -0700 IronPort-SDR: 5RmqfIiYbEVlscq+qUbEDc45JOu3/YduNMllnQOH0VwtUB3jFuDm36i40dz/WnLj1OtL/gQP5x P3Jyt5h12ZAA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,303,1580803200"; d="scan'208";a="282071632" Received: from unknown (HELO dpdk-zhaohy-t.sh.intel.com) ([10.240.183.68]) by fmsmga002.fm.intel.com with ESMTP; 25 Mar 2020 01:17:31 -0700 From: Xiao Qimai To: dts@dpdk.org Cc: Xiao Qimai Date: Wed, 25 Mar 2020 16:10:50 +0800 Message-Id: <1585123857-130281-4-git-send-email-qimaix.xiao@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1585123857-130281-1-git-send-email-qimaix.xiao@intel.com> References: <1585123857-130281-1-git-send-email-qimaix.xiao@intel.com> Subject: [dts] [PATCH V1 04/11]pvp_virtio_user_4k_pages: update script according to testplan's update 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 --- tests/TestSuite_pvp_virtio_user_4k_pages.py | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/tests/TestSuite_pvp_virtio_user_4k_pages.py b/tests/TestSuite_pvp_virtio_user_4k_pages.py index 5e6f657..532b6c1 100644 --- a/tests/TestSuite_pvp_virtio_user_4k_pages.py +++ b/tests/TestSuite_pvp_virtio_user_4k_pages.py @@ -130,21 +130,21 @@ class TestPvpVirtioUser4kPages(TestCase): Start testpmd on vhost """ testcmd = self.dut.target + "/app/testpmd " - vdev = " -m 1024 --no-huge --vdev 'net_vhost0,iface=vhost-net,queues=1'" + vdev = 'net_vhost0,iface=vhost-net,queues=1' para = " -- -i --no-numa --socket-num=%d" % self.ports_socket - eal_params = self.dut.create_eal_parameters(cores=self.core_list_vhost_user, prefix='vhost', ports=[self.pci_info]) - command_line_client = testcmd + eal_params + vdev + para + eal_params = self.dut.create_eal_parameters(cores=self.core_list_vhost_user, prefix='vhost', ports=[self.pci_info], vdevs=[vdev]) + command_line_client = testcmd + eal_params + ' -m 1024 --no-huge' + para self.vhost_user.send_expect(command_line_client, "testpmd> ", 120) self.vhost_user.send_expect("start", "testpmd> ", 120) - def start_testpmd_as_virtio(self): + def start_testpmd_as_virtio(self, packed=False): """ Start testpmd on virtio """ testcmd = self.dut.target + "/app/testpmd " - vdev = " --no-huge -m 1024 --vdev=net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net,queues=1 -- -i" - eal_params = self.dut.create_eal_parameters(cores=self.core_list_virtio_user, prefix='virtio-user', ports=[self.pci_info]) - command_line_user = testcmd + eal_params + vdev + vdev = "net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net,queues=1" if not packed else "net_virtio_user0,mac=00:11:22:33:44:10,path=./vhost-net,packed_vq=1,queues=1" + eal_params = self.dut.create_eal_parameters(cores=self.core_list_virtio_user, prefix='virtio-user', ports=[self.pci_info], vdevs=[vdev]) + command_line_user = testcmd + eal_params + ' --no-huge -m 1024 -- -i' self.virtio_user.send_expect(command_line_user, "testpmd> ", 120) self.virtio_user.send_expect("set fwd mac", "testpmd> ", 120) self.virtio_user.send_expect("start", "testpmd> ", 120) @@ -168,7 +168,7 @@ class TestPvpVirtioUser4kPages(TestCase): self.dut.close_session(self.vhost_user) self.dut.close_session(self.virtio_user) - def test_perf_pvp_virtio_user_with_4K_pages(self): + def test_perf_pvp_virtio_user_split_ring_with_4K_pages(self): """ Basic test for virtio-user 4K pages """ @@ -179,6 +179,18 @@ class TestPvpVirtioUser4kPages(TestCase): self.result_table_print() self.close_all_apps() + def test_perf_pvp_virtio_user_packed_ring_with_4K_pages(self): + """ + Basic test for virtio-user 4K pages + """ + self.start_testpmd_as_vhost() + self.prepare_tmpfs_for_4k() + self.start_testpmd_as_virtio(packed=True) + self.send_and_verify() + self.result_table_print() + self.close_all_apps() + + def tear_down(self): """ Run after each test case. -- 1.8.3.1