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 4B3B0A058A; Wed, 25 Mar 2020 09:17:44 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3AB531C029; Wed, 25 Mar 2020 09:17:44 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id E030C1C027 for ; Wed, 25 Mar 2020 09:17:41 +0100 (CET) IronPort-SDR: ImsiUcKb9Ef3hd4P/yat1T05XxGoael6ZK7ZHw/32PDe82x80pRZ6ldwe2cxSMv4HMuxNbc/WE i2netglmFh+g== 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:41 -0700 IronPort-SDR: 2fJXeT/F9jdW2yxE0s9H99zNtI7/uy7gtqwJkEgZUL5FdujfV7G1a7aIMelN7J4oCMnMV+t4Jf reUkwcb1kcaQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,303,1580803200"; d="scan'208";a="282071881" 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:40 -0700 From: Xiao Qimai To: dts@dpdk.org Cc: Xiao Qimai Date: Wed, 25 Mar 2020 16:10:56 +0800 Message-Id: <1585123857-130281-10-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 10/11]virtio_event_idx_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_virtio_event_idx_interrupt.py | 34 ++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_virtio_event_idx_interrupt.py b/tests/TestSuite_virtio_event_idx_interrupt.py index 08ad676..bdcca29 100644 --- a/tests/TestSuite_virtio_event_idx_interrupt.py +++ b/tests/TestSuite_virtio_event_idx_interrupt.py @@ -100,7 +100,7 @@ class TestVirtioIdxInterrupt(TestCase): self.vhost.send_expect(command_line, "testpmd> ", 30) self.vhost.send_expect("start", "testpmd> ", 30) - def start_vms(self): + def start_vms(self, packed=False): """ start qemus """ @@ -113,6 +113,8 @@ class TestVirtioIdxInterrupt(TestCase): if self.queues > 1: vm_params['opt_queue'] = self.queues opt_args = opt_args + ",mq=on,vectors=%d" % (2*self.queues + 2) + if packed: + opt_args = opt_args + ',packed=on' vm_params['opt_settings'] = opt_args self.vm.set_vm_device(**vm_params) try: @@ -224,7 +226,7 @@ class TestVirtioIdxInterrupt(TestCase): self.vm.stop() self.vhost.send_expect("quit", "#", 20) - def test_perf_virito_idx_interrupt_with_virtio_pci_driver_reload(self): + def test_perf_split_ring_virito_pci_driver_reload(self): """ virtio-pci driver reload test """ @@ -237,7 +239,7 @@ class TestVirtioIdxInterrupt(TestCase): self.verify(res is True, "Should increase the wait times of ixia") self.stop_all_apps() - def test_perf_virtio_idx_interrupt_with_multi_queue(self): + def test_perf_wake_up_split_ring_virtio_net_cores_with_event_idx_interrupt_mode_16queue(self): """ wake up virtio-net cores with event idx interrupt mode 16 queues test """ @@ -250,6 +252,32 @@ class TestVirtioIdxInterrupt(TestCase): self.check_each_queue_has_packets_info_on_vhost() self.stop_all_apps() + def test_perf_packed_ring_virito_pci_driver_reload(self): + """ + virtio-pci driver reload test + """ + self.queues = 1 + self.nb_cores = 1 + self.start_vhost_testpmd() + self.start_vms(packed=True) + self.config_virito_net_in_vm() + res = self.check_packets_after_reload_virtio_device(reload_times=30) + self.verify(res is True, "Should increase the wait times of ixia") + self.stop_all_apps() + + def test_perf_wake_up_packed_ring_virtio_net_cores_with_event_idx_interrupt_mode_16queue(self): + """ + wake up virtio-net cores with event idx interrupt mode 16 queues test + """ + self.queues = 16 + self.nb_cores = 16 + self.start_vhost_testpmd() + self.start_vms(packed=True) + self.config_virito_net_in_vm() + self.start_to_send_packets(delay=15) + self.check_each_queue_has_packets_info_on_vhost() + self.stop_all_apps() + def tear_down(self): """ Run after each test case. -- 1.8.3.1