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 3BC46A058A; Wed, 25 Mar 2020 09:22:44 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 271FB2BAE; Wed, 25 Mar 2020 09:22:44 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 710771E34 for ; Wed, 25 Mar 2020 09:22:42 +0100 (CET) IronPort-SDR: 6tcWBYebacBsdwJ31D9P5XvkTf8ZXqmOAvVvAZBkr2ol+cYyu9cXvzAdPH6q27MAJgqpDSdbyz D0BSJUb3yfpw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Mar 2020 01:22:41 -0700 IronPort-SDR: iNuFy67GUGdz84TFBIuJv0dWkE/KyEXDszdA4jOF5EheeUdm7IB6RvhKqZoZHfnCK4BOI1Hy8g retrCMjQtoaw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,303,1580803200"; d="scan'208";a="270732157" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga004.fm.intel.com with ESMTP; 25 Mar 2020 01:22:41 -0700 Received: from shsmsx606.ccr.corp.intel.com (10.109.6.216) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 25 Mar 2020 01:22:40 -0700 Received: from shsmsx603.ccr.corp.intel.com (10.109.6.143) by SHSMSX606.ccr.corp.intel.com (10.109.6.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 25 Mar 2020 16:22:38 +0800 Received: from shsmsx603.ccr.corp.intel.com ([10.109.6.143]) by SHSMSX603.ccr.corp.intel.com ([10.109.6.143]) with mapi id 15.01.1713.004; Wed, 25 Mar 2020 16:22:38 +0800 From: "Wang, Yinan" To: "Xiao, QimaiX" , "dts@dpdk.org" CC: "Xiao, QimaiX" Thread-Topic: [dts] [PATCH V1 10/11]virtio_event_idx_interrupt: update script according to testplan's update Thread-Index: AQHWAn3k6YE1j+9R9UCnSoPTnPGXZqhY+BSA Date: Wed, 25 Mar 2020 08:22:38 +0000 Message-ID: <6e275df8342e4889a4890f39873a28ba@intel.com> 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: dlp-reaction: no-action dlp-version: 11.2.0.6 dlp-product: dlpe-windows x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="iso-2022-jp" 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" Acked-by: Wang, Yinan > -----Original Message----- > From: dts On Behalf Of Xiao Qimai > Sent: 2020=1B$BG/=1B(B3=1B$B7n=1B(B25=1B$BF|=1B(B 16:11 > 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_mo > de_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_times=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_interrupt_ > 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