From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id AC4E1A034F; Thu, 25 Feb 2021 02:59:44 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 88F2F40692; Thu, 25 Feb 2021 02:59:44 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 476524067B for ; Thu, 25 Feb 2021 02:59:42 +0100 (CET) IronPort-SDR: sggCzyXV8ZlRAjgKBNsoClzVeyoKjpgp+6P2SJxnkgj0rFM/srBXwVxV47VkqRRIHKQI52eXXz Yae37Iu+xQkw== X-IronPort-AV: E=McAfee;i="6000,8403,9905"; a="185490773" X-IronPort-AV: E=Sophos;i="5.81,203,1610438400"; d="scan'208";a="185490773" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Feb 2021 17:59:40 -0800 IronPort-SDR: xJadd293jlLHimVFKw218+jHEiLPet4qE5S8p9nz/4+fcDaWdWQhy+7ZTgx3Q7NIvMBgrJq+fD TxZpBPoWMmQQ== X-IronPort-AV: E=Sophos;i="5.81,203,1610438400"; d="scan'208";a="442332961" Received: from unknown (HELO localhost.localdomain) ([10.240.183.222]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Feb 2021 17:59:39 -0800 From: Ling Wei To: dts@dpdk.org Cc: Ling Wei Date: Thu, 25 Feb 2021 09:58:48 +0800 Message-Id: <20210225015848.990490-1-weix.ling@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V2] tests/vhost_virtio_user_interrupt:add allow pci params when start testpmd and fix spelling mistakes X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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" v1: Add allow pci params when start testpmd. v2: Fix spelling mistakes backed to backend. Signed-off-by: Ling Wei --- tests/TestSuite_vhost_virtio_user_interrupt.py | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/tests/TestSuite_vhost_virtio_user_interrupt.py b/tests/TestSuite_vhost_virtio_user_interrupt.py index 9f89c460..29693f43 100644 --- a/tests/TestSuite_vhost_virtio_user_interrupt.py +++ b/tests/TestSuite_vhost_virtio_user_interrupt.py @@ -127,17 +127,21 @@ class TestVirtioUserInterrupt(TestCase): testcmd = self.app_testpmd_path + " " vdev = ["net_vhost0,iface=vhost-net,queues=1,client=0"] para = " -- -i --rxq=1 --txq=1" + allow_pci = [self.pci_info] + if dmas: + for item in self.used_cbdma: + allow_pci.append(item) if len(pci) == 0: if dmas: vdev = ["net_vhost0,iface=vhost-net,queues=1,dmas=[%s]" % dmas] - eal_params = self.dut.create_eal_parameters(cores=self.core_list_vhost, vdevs=vdev) + eal_params = self.dut.create_eal_parameters(cores=self.core_list_vhost, ports=allow_pci, vdevs=vdev) else: - eal_params = self.dut.create_eal_parameters(cores=self.core_list_vhost, ports=[self.pci_info], vdevs=vdev) + eal_params = self.dut.create_eal_parameters(cores=self.core_list_vhost, ports=allow_pci, vdevs=vdev) else: if dmas: vdev = ["net_vhost0,iface=vhost-net,queues=1,client=0,dmas=[%s]" % dmas] para = " -- -i" - eal_params = self.dut.create_eal_parameters(cores=self.core_list_vhost, ports=pci, prefix='vhost', vdevs=vdev) + eal_params = self.dut.create_eal_parameters(cores=self.core_list_vhost, ports=allow_pci, prefix='vhost', vdevs=vdev) else: eal_params = self.dut.create_eal_parameters(cores=self.core_list_vhost, prefix='vhost', no_pci=True, vdevs=vdev) cmd_vhost_user = testcmd + eal_params + para @@ -217,7 +221,7 @@ class TestVirtioUserInterrupt(TestCase): self.dut.send_expect('./usertools/dpdk-devbind.py -u %s' % self.device_str, '# ', 30) self.dut.send_expect('./usertools/dpdk-devbind.py --force --bind=ioatdma %s' % self.device_str, '# ', 60) - def test_split_ring_virtio_user_interrupt_with_vhost_net_as_backed(self): + def test_split_ring_virtio_user_interrupt_with_vhost_net_as_backend(self): """ Check the virtio-user interrupt can work when use vhost-net as backend """ @@ -238,7 +242,7 @@ class TestVirtioUserInterrupt(TestCase): self.check_interrupt_log(status="waked up") self.dut.send_expect("killall -s INT ping", "#") - def test_split_ring_virtio_user_interrupt_with_vhost_user_as_backed(self): + def test_split_ring_virtio_user_interrupt_with_vhost_user_as_backend(self): """ Check the virtio-user interrupt can work when use vhost-user as backend """ @@ -263,7 +267,7 @@ class TestVirtioUserInterrupt(TestCase): self.vhost.send_expect("quit", "#", 20) self.check_virtio_side_link_status("down") - def test_packed_ring_virtio_user_interrupt_with_vhost_user_as_backed(self): + def test_packed_ring_virtio_user_interrupt_with_vhost_user_as_backend(self): """ Check the virtio-user interrupt can work when use vhost-user as backend """ @@ -277,7 +281,7 @@ class TestVirtioUserInterrupt(TestCase): time.sleep(3) self.check_interrupt_log(status="waked up") - def test_packed_ring_virtio_user_interrupt_with_vhost_net_as_backed(self): + def test_packed_ring_virtio_user_interrupt_with_vhost_net_as_backend(self): """ Check the virtio-user interrupt can work when use vhost-net as backend """ -- 2.25.1