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 62C2FA058A; Wed, 25 Mar 2020 09:17:37 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 568E81C028; Wed, 25 Mar 2020 09:17:37 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id C81AD1C030 for ; Wed, 25 Mar 2020 09:17:34 +0100 (CET) IronPort-SDR: 9DBp0qoDWR3rcWUaUV6XE05ORU99lE7vYYVXGjtVmJJI55NFq8xWYAJzRSRh7vo9aie2RdruNn OU4bRFn0rbHQ== 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:34 -0700 IronPort-SDR: 0mhRGLbMaBmyFMGf0WJY9PaCw6eieAHlEmjGuuQt8HyUHihDj74NMeje2oLEdKy8mOdB7efn6p U3DmIIZGJGGA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,303,1580803200"; d="scan'208";a="282071677" 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:33 -0700 From: Xiao Qimai To: dts@dpdk.org Cc: Xiao Qimai Date: Wed, 25 Mar 2020 16:10:51 +0800 Message-Id: <1585123857-130281-5-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 05/11]vhost_enqueue_interrupt: 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_vhost_enqueue_interrupt.py | 36 +++++++++++++++++++++++------- 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/tests/TestSuite_vhost_enqueue_interrupt.py b/tests/TestSuite_vhost_enqueue_interrupt.py index 509c7f3..9d0e024 100644 --- a/tests/TestSuite_vhost_enqueue_interrupt.py +++ b/tests/TestSuite_vhost_enqueue_interrupt.py @@ -83,14 +83,14 @@ class TestVhostEnqueueInterrupt(TestCase): self.core_list_virtio = core_list[0: self.queues+1] self.core_list_l3fwd = core_list[self.queues+1: need_num] - def lanuch_virtio_user(self): + def lanuch_virtio_user(self, packed=False): """ launch virtio-user with server mode """ - vdev = "--vdev=net_virtio_user0,mac=%s,path=./vhost-net,server=1,queues=%d" % (self.vmac, self.queues) - eal_params = self.dut.create_eal_parameters(cores=self.core_list_virtio, prefix='virtio', no_pci=True, ports=[self.pci_info]) + vdev = "net_virtio_user0,mac=%s,path=./vhost-net,server=1,queues=%d" % (self.vmac, self.queues) if not packed else "net_virtio_user0,mac=%s,path=./vhost-net,server=1,queues=%d,packed_vq=1" % (self.vmac, self.queues) + eal_params = self.dut.create_eal_parameters(cores=self.core_list_virtio, prefix='virtio', no_pci=True, ports=[self.pci_info], vdevs=[vdev]) para = " -- -i --rxq=%d --txq=%d --rss-ip" % (self.queues, self.queues) - command_line_client = self.dut.target + "/app/testpmd " + eal_params + vdev + para + command_line_client = self.dut.target + "/app/testpmd " + eal_params + para self.virtio_user.send_expect(command_line_client, "testpmd> ", 120) self.virtio_user.send_expect("set fwd txonly", "testpmd> ", 20) @@ -109,9 +109,9 @@ class TestVhostEnqueueInterrupt(TestCase): self.verify_info.append(info) example_cmd = "./examples/l3fwd-power/build/l3fwd-power " - vdev = [r"'net_vhost0,iface=vhost-net,queues=%d,client=1'" % self.queues] + vdev = 'net_vhost0,iface=vhost-net,queues=%d,client=1' % self.queues para = " -- -p 0x1 --parse-ptype 1 --config '%s' " % config_info - eal_params = self.dut.create_eal_parameters(cores=self.core_list_l3fwd, no_pci=True, ports=[self.pci_info], vdevs=vdev) + eal_params = self.dut.create_eal_parameters(cores=self.core_list_l3fwd, no_pci=True, ports=[self.pci_info], vdevs=[vdev]) command_line_client = example_cmd + eal_params + para self.vhost.get_session_before(timeout=2) self.vhost.send_expect(command_line_client, "POWER", 40) @@ -156,7 +156,7 @@ class TestVhostEnqueueInterrupt(TestCase): self.dut.close_session(self.vhost) self.dut.close_session(self.virtio_user) - def test_virtio_user_interrupt(self): + def test_wake_up_split_ring_vhost_user_core_with_l3fwd_power_sample(self): """ Check the virtio-user interrupt can work when use vhost-net as backend """ @@ -166,7 +166,7 @@ class TestVhostEnqueueInterrupt(TestCase): self.lanuch_l3fwd_power() self.send_and_verify() - def test_virtio_user_interrupt_with_multi_queue(self): + def test_wake_up_split_ring_vhost_user_core_with_l3fwd_power_sample_when_multi_queues_enabled(self): """ Check the virtio-user interrupt can work with multi queue """ @@ -176,6 +176,26 @@ class TestVhostEnqueueInterrupt(TestCase): self.lanuch_l3fwd_power() self.send_and_verify() + def test_wake_up_packed_ring_vhost_user_core_with_l3fwd_power_sample(self): + """ + Check the virtio-user interrupt can work when use vhost-net as backend + """ + self.queues = 1 + self.get_core_list() + self.lanuch_virtio_user(packed=True) + self.lanuch_l3fwd_power() + self.send_and_verify() + + def test_wake_up_packed_ring_vhost_user_core_with_l3fwd_power_sample_when_multi_queues_enabled(self): + """ + Check the virtio-user interrupt can work with multi queue + """ + self.queues = 4 + self.get_core_list() + self.lanuch_virtio_user(packed=True) + self.lanuch_l3fwd_power() + self.send_and_verify() + def tear_down(self): """ Run after each test case. -- 1.8.3.1