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 24BD1A0548; Fri, 2 Apr 2021 10:39:10 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1B7C2140EA8; Fri, 2 Apr 2021 10:39:10 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 313114013F for ; Fri, 2 Apr 2021 10:39:08 +0200 (CEST) IronPort-SDR: EsPi9i6HvI+UHlTKsSgE62vr+DmzQ+A/i7cVWnkvhfTMsxB2p/F+MIsdkkhPG4hHLq7KJ+n6ff I0nPdtiJyvYg== X-IronPort-AV: E=McAfee;i="6000,8403,9941"; a="212696044" X-IronPort-AV: E=Sophos;i="5.81,299,1610438400"; d="scan'208";a="212696044" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Apr 2021 01:39:07 -0700 IronPort-SDR: UN6feP8V2xP5FC3QyaJrtHoWjFBbx5dcIydwIE4G3+BMUHId43R6en2XniZWXKRQAj1AL3PRKV JlwBdb1AJc7g== X-IronPort-AV: E=Sophos;i="5.81,299,1610438400"; d="scan'208";a="419573754" Received: from unknown (HELO localhost.localdomain) ([10.240.183.222]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Apr 2021 01:39:05 -0700 From: Ling Wei To: dts@dpdk.org Cc: Ling Wei Date: Fri, 2 Apr 2021 16:37:47 +0800 Message-Id: <20210402083747.106679-1-weix.ling@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V1] tests/vhost_virtio_pmd_interrupt: add 1 packed ring cbdma testcase sync with testplan 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" Add 1 packed ring cbdma testcase 7 sync with testplan. Signed-off-by: Ling Wei --- tests/TestSuite_vhost_virtio_pmd_interrupt.py | 28 +++++++++++++++---- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/tests/TestSuite_vhost_virtio_pmd_interrupt.py b/tests/TestSuite_vhost_virtio_pmd_interrupt.py index 57bcf6c7..675a15ee 100644 --- a/tests/TestSuite_vhost_virtio_pmd_interrupt.py +++ b/tests/TestSuite_vhost_virtio_pmd_interrupt.py @@ -180,7 +180,10 @@ class TestVhostVirtioPmdInterrupt(TestCase): vm_params['opt_path'] = '%s/vhost-net' % self.base_dir vm_params['opt_mac'] = "00:11:22:33:44:55" vm_params['opt_queue'] = self.queues - opt_param = "mrg_rxbuf=on,csum=on,mq=on,vectors=%d" % (2*self.queues+2) if not packed else "mrg_rxbuf=on,csum=on,mq=on,vectors=%d,packed=on" % (2*self.queues+2) + if not packed: + opt_param = "mrg_rxbuf=on,csum=on,mq=on,vectors=%d" % (2 * self.queues + 2) + else: + opt_param = "mrg_rxbuf=on,csum=on,mq=on,vectors=%d,packed=on" % (2 * self.queues + 2) if mode == 0: vm_params['opt_settings'] = "disable-modern=true," + opt_param elif mode == 1: @@ -309,7 +312,7 @@ class TestVhostVirtioPmdInterrupt(TestCase): def test_perf_virtio_pmd_interrupt_with_4queues(self): """ - wake up virtio_user 0.95 core with l3fwd-power sample + Test Case 1: Basic virtio interrupt test with 4 queues """ self.queues = 4 self.nb_cores = 4 @@ -321,7 +324,7 @@ class TestVhostVirtioPmdInterrupt(TestCase): def test_perf_virtio_pmd_interrupt_with_16queues(self): """ - wake up virtio_user 0.95 core with l3fwd-power sample + Test Case 2: Basic virtio interrupt test with 16 queues """ self.queues = 16 self.nb_cores = 16 @@ -333,7 +336,7 @@ class TestVhostVirtioPmdInterrupt(TestCase): def test_perf_virito10_pmd_interrupt_with_4queues(self): """ - wake up virtio_user 1.0 core with l3fwd-power sample + Test Case 3: Basic virtio-1.0 interrupt test with 4 queues """ self.queues = 4 self.nb_cores = 4 @@ -345,7 +348,7 @@ class TestVhostVirtioPmdInterrupt(TestCase): def test_perf_packed_ring_virtio_interrupt_with_16queues(self): """ - wake up virtio_user 0.95 core with l3fwd-power sample + Test Case 4: Packed ring virtio interrupt test with 16 queues """ self.queues = 16 self.nb_cores = 16 @@ -383,12 +386,27 @@ class TestVhostVirtioPmdInterrupt(TestCase): self.launch_l3fwd_power_in_vm() self.send_and_verify() + def test_perf_packed_ring_virtio_interrupt_with_16_queues_and_cbdma_enabled(self): + """ + Test Case 7: Packed ring virtio interrupt test with 16 queues and cbdma enabled + """ + used_cbdma_num = 16 + self.queues = 16 + self.nb_cores = 16 + self.get_cbdma_ports_info_and_bind_to_dpdk(used_cbdma_num) + self.start_testpmd_on_vhost(self.dmas_info) + self.start_vms(mode=0, packed=True) + self.prepare_vm_env() + self.launch_l3fwd_power_in_vm() + self.send_and_verify() + def tear_down(self): """ Run after each test case. """ self.stop_all_apps() self.dut.kill_all() + self.dut.send_expect("killall -s INT %s" % self.testpmd_name, "#") self.dut.send_expect("killall -s INT qemu-system-x86_64", "#") self.bind_cbdma_device_to_kernel() -- 2.25.1