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 661CDA058A; Wed, 25 Mar 2020 09:22:53 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 58C7E1B75C; Wed, 25 Mar 2020 09:22:53 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id C2F811B75C for ; Wed, 25 Mar 2020 09:22:50 +0100 (CET) IronPort-SDR: tl6i47Vq6MKcZmh8xcZfSBCoKUtSbVgMKpkWqZGSYj9IrBDH0cqov2favzgtpKjDOUt0ys3drh HRZmPS/CeL4A== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Mar 2020 01:22:49 -0700 IronPort-SDR: CDPWxhp+7P7+6qH7D1BektLANftBWOCwVM/8ATPxEqq249uxnKN1bZBVGgFZSl9i7h1vLEDh1a bmG8zRw0Iv9Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,303,1580803200"; d="scan'208";a="250344875" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga006.jf.intel.com with ESMTP; 25 Mar 2020 01:22:49 -0700 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 25 Mar 2020 01:22:48 -0700 Received: from shsmsx603.ccr.corp.intel.com (10.109.6.143) by SHSMSX601.ccr.corp.intel.com (10.109.6.141) 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:46 +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:46 +0800 From: "Wang, Yinan" To: "Xiao, QimaiX" , "dts@dpdk.org" CC: "Xiao, QimaiX" Thread-Topic: [dts] [PATCH V1 05/11]vhost_enqueue_interrupt: update script according to testplan's update Thread-Index: AQHWAn3kf7aaQe0X90mGeX/80y+LEKhY+CAw Date: Wed, 25 Mar 2020 08:22:46 +0000 Message-ID: <95798eb639894ac49af77da6ee03d9bd@intel.com> 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: 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 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" 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 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,pack= ed_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 > backend > """ > @@ -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_when_ > 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_whe > n_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