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 4B0D2A0562; Tue, 31 Mar 2020 05:00:28 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 42F3B1C07B; Tue, 31 Mar 2020 05:00:28 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 09B422B8B for ; Tue, 31 Mar 2020 05:00:26 +0200 (CEST) IronPort-SDR: o8kc9g/iB4ONIfPee39Zz8ypJ0K2ds74O/TCkdlsP+e6AH9OfDo2lf1axeA3Y7pFWoBSS8jLo0 qo5Bl8i/b5DA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Mar 2020 20:00:26 -0700 IronPort-SDR: BIk0byn8waKmNw0/Awb9aKIhvZpMvm7gJpoLAem/k46hCf8gWC7vJESbZUX5bzctTh3GfdJoao fb0FayZIcEGg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,326,1580803200"; d="scan'208";a="241798230" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga008.fm.intel.com with ESMTP; 30 Mar 2020 20:00:26 -0700 Received: from shsmsx603.ccr.corp.intel.com (10.109.6.143) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 30 Mar 2020 20:00:26 -0700 Received: from shsmsx606.ccr.corp.intel.com (10.109.6.216) by SHSMSX603.ccr.corp.intel.com (10.109.6.143) 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 11:00:23 +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 11:00:23 +0800 From: "Xiao, QimaiX" To: "dts@dpdk.org" Thread-Topic: [dts][PATCH V1 05/11]vhost_enqueue_interrupt: update script according to testplan's update Thread-Index: AQHWAn3dA/yXR0aW+UasSSzVBUHzPKhiDAkQ Date: Tue, 31 Mar 2020 03:00:23 +0000 Message-ID: References: <1585123857-130281-1-git-send-email-qimaix.xiao@intel.com> <1585123857-130281-5-git-send-email-qimaix.xiao@intel.com> In-Reply-To: <1585123857-130281-5-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 05/11]vhost_enqueue_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 05/11]vhost_enqueue_interrupt: update script > according to testplan's update >=20 > Signed-off-by: Xiao Qimai > --- > tests/TestSuite_vhost_enqueue_interrupt.py | 36 > +++++++++++++++++++++++------- > 1 file changed, 28 insertions(+), 8 deletions(-) >=20 > diff --git a/tests/TestSuite_vhost_enqueue_interrupt.py > b/tests/TestSuite_vhost_enqueue_interrupt.py > index 509c7f3..9d0e024 100644 > --- a/tests/TestSuite_vhost_enqueue_interrupt.py > +++ b/tests/TestSuite_vhost_enqueue_interrupt.py > @@ -83,14 +83,14 @@ class TestVhostEnqueueInterrupt(TestCase): > self.core_list_virtio =3D core_list[0: self.queues+1] > self.core_list_l3fwd =3D core_list[self.queues+1: need_num] >=20 > - def lanuch_virtio_user(self): > + def lanuch_virtio_user(self, packed=3DFalse): > """ > launch virtio-user with server mode > """ > - vdev =3D "--vdev=3Dnet_virtio_user0,mac=3D%s,path=3D./vhost- > net,server=3D1,queues=3D%d" % (self.vmac, self.queues) > - eal_params =3D > self.dut.create_eal_parameters(cores=3Dself.core_list_virtio, prefix=3D'v= irtio', > no_pci=3DTrue, ports=3D[self.pci_info]) > + vdev =3D "net_virtio_user0,mac=3D%s,path=3D./vhost- > net,server=3D1,queues=3D%d" % (self.vmac, self.queues) if not packed else > "net_virtio_user0,mac=3D%s,path=3D./vhost- > net,server=3D1,queues=3D%d,packed_vq=3D1" % (self.vmac, self.queues) > + eal_params =3D > + self.dut.create_eal_parameters(cores=3Dself.core_list_virtio, > + prefix=3D'virtio', no_pci=3DTrue, ports=3D[self.pci_info], vdevs=3D[vde= v]) > para =3D " -- -i --rxq=3D%d --txq=3D%d --rss-ip" % (self.queues,= self.queues) > - command_line_client =3D self.dut.target + "/app/testpmd " + eal= _params > + vdev + para > + command_line_client =3D self.dut.target + "/app/testpmd " + > + eal_params + para > self.virtio_user.send_expect(command_line_client, "testpmd> ", 1= 20) > self.virtio_user.send_expect("set fwd txonly", "testpmd> ", 20) >=20 > @@ -109,9 +109,9 @@ class TestVhostEnqueueInterrupt(TestCase): > self.verify_info.append(info) >=20 > example_cmd =3D "./examples/l3fwd-power/build/l3fwd-power " > - vdev =3D [r"'net_vhost0,iface=3Dvhost-net,queues=3D%d,client=3D1= '" % > self.queues] > + vdev =3D 'net_vhost0,iface=3Dvhost-net,queues=3D%d,client=3D1' % > + self.queues > para =3D " -- -p 0x1 --parse-ptype 1 --config '%s' " % config_in= fo > - eal_params =3D > self.dut.create_eal_parameters(cores=3Dself.core_list_l3fwd, no_pci=3DTru= e, > ports=3D[self.pci_info], vdevs=3Dvdev) > + eal_params =3D > + self.dut.create_eal_parameters(cores=3Dself.core_list_l3fwd, > + no_pci=3DTrue, ports=3D[self.pci_info], vdevs=3D[vdev]) > command_line_client =3D example_cmd + eal_params + para > self.vhost.get_session_before(timeout=3D2) > self.vhost.send_expect(command_line_client, "POWER", 40) @@ -156= ,7 > +156,7 @@ class TestVhostEnqueueInterrupt(TestCase): > self.dut.close_session(self.vhost) > self.dut.close_session(self.virtio_user) >=20 > - def test_virtio_user_interrupt(self): > + def > test_wake_up_split_ring_vhost_user_core_with_l3fwd_power_sample(self > ): > """ > Check the virtio-user interrupt can work when use vhost-net as b= ackend > """ > @@ -166,7 +166,7 @@ class TestVhostEnqueueInterrupt(TestCase): > self.lanuch_l3fwd_power() > self.send_and_verify() >=20 > - def test_virtio_user_interrupt_with_multi_queue(self): > + def > test_wake_up_split_ring_vhost_user_core_with_l3fwd_power_sample_wh > en_multi_queues_enabled(self): > """ > Check the virtio-user interrupt can work with multi queue > """ > @@ -176,6 +176,26 @@ class TestVhostEnqueueInterrupt(TestCase): > self.lanuch_l3fwd_power() > self.send_and_verify() >=20 > + def > test_wake_up_packed_ring_vhost_user_core_with_l3fwd_power_sample( > self): > + """ > + Check the virtio-user interrupt can work when use vhost-net as > backend > + """ > + self.queues =3D 1 > + self.get_core_list() > + self.lanuch_virtio_user(packed=3DTrue) > + self.lanuch_l3fwd_power() > + self.send_and_verify() > + > + def > test_wake_up_packed_ring_vhost_user_core_with_l3fwd_power_sample_ > when_multi_queues_enabled(self): > + """ > + Check the virtio-user interrupt can work with multi queue > + """ > + self.queues =3D 4 > + self.get_core_list() > + self.lanuch_virtio_user(packed=3DTrue) > + self.lanuch_l3fwd_power() > + self.send_and_verify() > + > def tear_down(self): > """ > Run after each test case. > -- > 1.8.3.1