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 17204A0562; Tue, 31 Mar 2020 04:59:43 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0BCAB1C07B; Tue, 31 Mar 2020 04:59:43 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id E420E1C045 for ; Tue, 31 Mar 2020 04:59:41 +0200 (CEST) IronPort-SDR: 5/unRSh7qYVH9vE+0WMEdImk4C0d+NTxJxOB0nBEo04jWxw7Z6BFsKWlk88BEOdmjFvsAN+lFI XtZKWoPaqCHw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Mar 2020 19:59:40 -0700 IronPort-SDR: qYlrJaIaQS1giaHRgarN0vEMYDdNJvC3zRWRgJYr8nJTzkvz8M+R0bhu+qNI9pgYQMvskrLsFM 48zbtGgDgMOQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,326,1580803200"; d="scan'208";a="272592006" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga004.fm.intel.com with ESMTP; 30 Mar 2020 19:59:40 -0700 Received: from shsmsx605.ccr.corp.intel.com (10.109.6.215) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 30 Mar 2020 19:59:40 -0700 Received: from shsmsx606.ccr.corp.intel.com (10.109.6.216) by SHSMSX605.ccr.corp.intel.com (10.109.6.215) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 31 Mar 2020 10:59:38 +0800 Received: from shsmsx606.ccr.corp.intel.com ([10.109.6.216]) by SHSMSX606.ccr.corp.intel.com ([10.109.6.216]) with mapi id 15.01.1713.004; Tue, 31 Mar 2020 10:59:38 +0800 From: "Xiao, QimaiX" To: "dts@dpdk.org" Thread-Topic: [dts][PATCH V1 10/11]virtio_event_idx_interrupt: update script according to testplan's update Thread-Index: AQHWAn3i6qC4Ae8yQkuXuil+Hk8cWKhiC8jg Date: Tue, 31 Mar 2020 02:59:37 +0000 Message-ID: References: <1585123857-130281-1-git-send-email-qimaix.xiao@intel.com> <1585123857-130281-10-git-send-email-qimaix.xiao@intel.com> In-Reply-To: <1585123857-130281-10-git-send-email-qimaix.xiao@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [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" Tested-by: Xiao, QimaiX Regards, Xiao Qimai > -----Original Message----- > From: Xiao, QimaiX > Sent: Wednesday, March 25, 2020 4:11 PM > To: dts@dpdk.org > Cc: Xiao, QimaiX > Subject: [dts][PATCH V1 10/11]virtio_event_idx_interrupt: update script > according to testplan's update >=20 > Signed-off-by: Xiao Qimai > --- > tests/TestSuite_virtio_event_idx_interrupt.py | 34 > ++++++++++++++++++++++++--- > 1 file changed, 31 insertions(+), 3 deletions(-) >=20 > 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) >=20 > - def start_vms(self): > + def start_vms(self, packed=3DFalse): > """ > start qemus > """ > @@ -113,6 +113,8 @@ class TestVirtioIdxInterrupt(TestCase): > if self.queues > 1: > vm_params['opt_queue'] =3D self.queues > opt_args =3D opt_args + ",mq=3Don,vectors=3D%d" % (2*self.qu= eues + 2) > + if packed: > + opt_args =3D opt_args + ',packed=3Don' > vm_params['opt_settings'] =3D 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) >=20 > - def test_perf_virito_idx_interrupt_with_virtio_pci_driver_reload(sel= f): > + 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() >=20 > - 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() >=20 > + def test_perf_packed_ring_virito_pci_driver_reload(self): > + """ > + virtio-pci driver reload test > + """ > + self.queues =3D 1 > + self.nb_cores =3D 1 > + self.start_vhost_testpmd() > + self.start_vms(packed=3DTrue) > + self.config_virito_net_in_vm() > + res =3D self.check_packets_after_reload_virtio_device(reload_tim= es=3D30) > + 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_interru > pt_mode_16queue(self): > + """ > + wake up virtio-net cores with event idx interrupt mode 16 queues= test > + """ > + self.queues =3D 16 > + self.nb_cores =3D 16 > + self.start_vhost_testpmd() > + self.start_vms(packed=3DTrue) > + self.config_virito_net_in_vm() > + self.start_to_send_packets(delay=3D15) > + 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