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 36A5DA0613 for ; Fri, 30 Aug 2019 05:26:34 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2C7101E547; Fri, 30 Aug 2019 05:26:34 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 2AA271E4DC for ; Fri, 30 Aug 2019 05:26:33 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Aug 2019 20:26:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,445,1559545200"; d="scan'208";a="188748187" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by FMSMGA003.fm.intel.com with ESMTP; 29 Aug 2019 20:26:32 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 29 Aug 2019 20:26:32 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.80]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.250]) with mapi id 14.03.0439.000; Fri, 30 Aug 2019 11:26:30 +0800 From: "Tu, Lijuan" To: "Zhang, YanX A" , "dts@dpdk.org" CC: "Zhang, YanX A" Thread-Topic: [dts] [PATCH V1] tests/TestSuite_runtime_vf_queue_number:Reduce the number of packages Thread-Index: AQHVVzwt+aq4OaHmSEe1lg5rwdezaacTFvDA Date: Fri, 30 Aug 2019 03:26:30 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB078ED@SHSMSX101.ccr.corp.intel.com> References: <1566294645-21844-1-git-send-email-yanx.a.zhang@intel.com> In-Reply-To: <1566294645-21844-1-git-send-email-yanx.a.zhang@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiY2VjOWYxOWMtOWNmMy00YWVkLWFmMTAtYTA0NTk5YzdhY2ZkIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiUHIrOVFyamlSNlZvNjhXZTdWTHl6bFNhR1c3V2k3K2w2WFVLTndoYk40MVZoTXBSQ1ZEU084ZGl2QnI4QUZGcyJ9 x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1] tests/TestSuite_runtime_vf_queue_number:Reduce the number of packages 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" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of zhang,yan > Sent: Tuesday, August 20, 2019 5:51 PM > To: dts@dpdk.org > Cc: Zhang, YanX A > Subject: [dts] [PATCH V1] tests/TestSuite_runtime_vf_queue_number:Reduce > the number of packages >=20 > Reduce the number of unneeded packets and optimize script run time. >=20 > Signed-off-by: zhang,yan > --- > tests/TestSuite_runtime_vf_queue_number.py | 10 ++++++---- > 1 file changed, 6 insertions(+), 4 deletions(-) >=20 > diff --git a/tests/TestSuite_runtime_vf_queue_number.py > b/tests/TestSuite_runtime_vf_queue_number.py > index 3e04489..dca1937 100644 > --- a/tests/TestSuite_runtime_vf_queue_number.py > +++ b/tests/TestSuite_runtime_vf_queue_number.py > @@ -273,13 +273,14 @@ class TestRuntimeVfQn(TestCase): > gest_eal_param =3D '-w %s --file-prefix=3Dtest2' % > self.vm_dut_0.ports_info[0]['pci'] > self.vm0_testpmd =3D PmdOutput(self.vm_dut_0) > for valid_qn in range(1, 17): > + count =3D valid_qn * 20 > if valid_qn =3D=3D 1: > self.vm0_testpmd.start_testpmd(self.pmdout.default_cores= , > eal_param=3Dgest_eal_param, param=3D' --rxq=3D1 --txq=3D1') > self.vm0_testpmd.execute_cmd('set verbose 1') > self.vm0_testpmd.execute_cmd("set promisc all off", "tes= tpmd> ") > self.vm0_testpmd.execute_cmd("set fwd mac", "testpmd> ") > self.vm0_testpmd.execute_cmd('port config 0 rss-hash-key > ipv4 %s' % RSS_KEY) > - self.verify_result(valid_qn, 500) > + self.verify_result(valid_qn, count) > self.vm0_testpmd.execute_cmd('quit', '# ') > else: > self.vm0_testpmd.start_testpmd(self.pmdout.default_cores= , > eal_param=3Dgest_eal_param, @@ -287,7 +288,7 @@ class > TestRuntimeVfQn(TestCase): > self.vm0_testpmd.execute_cmd("set promisc all off", "tes= tpmd> ") > self.vm0_testpmd.execute_cmd("set fwd mac", "testpmd> ") > self.vm0_testpmd.execute_cmd('port config 0 rss-hash-key > ipv4 %s' % RSS_KEY) > - self.verify_result(valid_qn, 500) > + self.verify_result(valid_qn, count) > self.vm0_testpmd.execute_cmd('quit', '# ') >=20 > def test_set_invalid_vf_qn_in_testpmd(self): > @@ -323,19 +324,20 @@ class TestRuntimeVfQn(TestCase): > self.vm0_testpmd =3D PmdOutput(self.vm_dut_0) > self.vm0_testpmd.start_testpmd(self.pmdout.default_cores, > eal_param=3Dgest_eal_param, param=3D'') > for valid_qn in range(1, 17): > + count =3D valid_qn * 20 > if valid_qn =3D=3D 1: > guest_cmds =3D self.testpmd_config_cmd_list(1) > guest_cmds.insert(0, ['set fwd mac']) > guest_cmds.insert(0, ['set promisc all off']) > guest_cmds.insert(0, ['set verbose 1']) > self.execute_testpmd_cmd(guest_cmds) > - self.verify_result(valid_qn, 500) > + self.verify_result(valid_qn, count) > else: > guest_cmds =3D self.testpmd_config_cmd_list(valid_qn) > guest_cmds.insert(0, ['set fwd mac']) > guest_cmds.insert(0, ['set promisc all off']) > self.execute_testpmd_cmd(guest_cmds) > - self.verify_result(valid_qn, 500) > + self.verify_result(valid_qn, count) > self.vm0_testpmd.execute_cmd('quit', '# ') >=20 > def test_set_invalid_vf_qn_with_testpmd_func_cmd(self): > -- > 2.17.2