From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 9FEDA235 for ; Mon, 23 Jul 2018 07:12:37 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Jul 2018 22:12:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,392,1526367600"; d="scan'208";a="75029124" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga001.jf.intel.com with ESMTP; 22 Jul 2018 22:12:36 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sun, 22 Jul 2018 22:12:35 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.100]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.57]) with mapi id 14.03.0319.002; Mon, 23 Jul 2018 13:12:33 +0800 From: "Liu, Yong" To: "Peng, Yuan" , "dts@dpdk.org" CC: "Peng, Yuan" Thread-Topic: [dts] [PATCH v2] tests: TestSuite_runtime_queue_number.py Thread-Index: AQHUGnfT2ChKHgpupEewTR06Skluc6ScUouQ Date: Mon, 23 Jul 2018 05:12:33 +0000 Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E630FE3C8@SHSMSX103.ccr.corp.intel.com> References: <1531465513-80041-1-git-send-email-yuan.peng@intel.com> In-Reply-To: <1531465513-80041-1-git-send-email-yuan.peng@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNWJmZjEyYmUtNWE0ZC00OTdjLTkxYmYtMmE3MmIwNWNiNjdlIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiVEZERlZDOEpYQmpEM0UrRm4yeWd0emhXXC9vYUVmR3o1RkZVeENNMDM0aE5qZTZUeW9SMHJyMjVXMGxKMGVYS1kifQ== x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.200.100 dlp-reaction: no-action 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 v2] tests: TestSuite_runtime_queue_number.py 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: , X-List-Received-Date: Mon, 23 Jul 2018 05:12:38 -0000 Thanks, Yuan. Applied. > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Peng Yuan > Sent: Friday, July 13, 2018 3:05 PM > To: dts@dpdk.org > Cc: Peng, Yuan > Subject: [dts] [PATCH v2] tests: TestSuite_runtime_queue_number.py >=20 > create different vf number in different NIC type >=20 > Signed-off-by: Peng Yuan >=20 > diff --git a/tests/TestSuite_runtime_queue_number.py > b/tests/TestSuite_runtime_queue_number.py > index b767e06..44aec06 100644 > --- a/tests/TestSuite_runtime_queue_number.py > +++ b/tests/TestSuite_runtime_queue_number.py > @@ -125,7 +125,7 @@ class TestRuntime_Queue_Number(TestCase): > """ > self.tester.scapy_foreground() > time.sleep(2) > - for i in range(32): > + for i in range(256): > packet =3D r'sendp([Ether(dst=3D"%s", > src=3Dget_if_hwaddr("%s"))/IP(src=3D"192.168.0.%d", dst=3D"192.168.0.%d")= ], > iface=3D"%s")' % ( > self.vf_mac, itf, i + 1, i + 2, itf) > self.tester.scapy_append(packet) > @@ -160,7 +160,7 @@ class TestRuntime_Queue_Number(TestCase): > m =3D scanner.search(line) > packet_rec =3D m.group(1) >=20 > - self.verify(packet_sumnum =3D=3D int(packet_rec) =3D=3D 32, "The= re are > some packets lost.") > + self.verify(packet_sumnum =3D=3D int(packet_rec) =3D=3D 256, "Th= ere are > some packets lost.") >=20 > def test_set_valid_vf_max_qn(self): > """ > @@ -234,22 +234,28 @@ class TestRuntime_Queue_Number(TestCase): > outstring =3D self.session_secondary.send_expect("show port info > all", "testpmd> ", 120) > self.verify_result(outstring, max_rxqn=3D8, max_txqn=3D8, cur_rx= qn=3D8, > cur_txqn=3D8) >=20 > - def test_set_32vfs_1pf(self): > + def test_set_maxvfs_1pf(self): > """ > - set max queue number when setting 32 VFs on 1 PF port. > + set max queue number when setting max VFs on 1 PF port. > """ > - self.setup_env(32) > - # failed to set VF max queue num to 16. > - out =3D self.pmdout.start_testpmd("%s" % self.cores, eal_param= =3D"- > w %s,queue-num-per-vf=3D16 --file-prefix=3Dtest1 --socket-mem 1024,1024" = % > self.pf_pci) > - self.verify("exceeds the hardware maximum 384" in out, "the queu= e > num exceeds the hardware maximum 384") > + if (self.nic in ["fortville_eagle", "fortpark_TLV"]): > + self.setup_env(32) > + # failed to set VF max queue num to 16. > + out =3D self.pmdout.start_testpmd("%s" % self.cores, > eal_param=3D"-w %s,queue-num-per-vf=3D16 --file-prefix=3Dtest1 --socket-m= em > 1024,1024" % self.pf_pci) > + self.verify("exceeds the hardware maximum 384" in out, "the > queue num exceeds the hardware maximum 384") > + elif (self.nic in ["fortville_spirit", > "fortville_spirit_single"]): > + self.setup_env(64) > + # failed to set VF max queue num to 16. > + out =3D self.pmdout.start_testpmd("%s" % self.cores, > eal_param=3D"-w %s,queue-num-per-vf=3D16 --file-prefix=3Dtest1 --socket-m= em > 1024,1024" % self.pf_pci) > + self.verify("exceeds the hardware maximum 768" in out, "the > queue num exceeds the hardware maximum 768") > self.dut.send_expect("quit", "# ") > time.sleep(5) > # succeed in setting VF max queue num to 8 > self.pmdout.start_testpmd("%s" % self.cores, eal_param=3D"- > w %s,queue-num-per-vf=3D8 --file-prefix=3Dtest1 --socket-mem 1024,1024" % > self.pf_pci) > # start testpmd on vf0 > - self.session_secondary.send_expect("./%s/app/testpmd -c 0xf0 -n = 4 > -w %s --file-prefix=3Dtest2 --socket-mem 1024,1024 -- -i --rxq=3D%d --txq= =3D%d" % > (self.target, self.sriov_vfs_port[0].pci, 8, 8), "testpmd>", 120) > + self.session_secondary.send_expect("./%s/app/testpmd -c 0x1e0 -n > 4 -w %s --file-prefix=3Dtest2 --socket-mem 1024,1024 -- -i --rxq=3D%d -- > txq=3D%d" % (self.target, self.sriov_vfs_port[0].pci, 8, 8), "testpmd>", = 120) > # start testpmd on vf31 with different rxq/txq number > - self.session_third.send_expect("./%s/app/testpmd -c 0xf00 -n 4 - > w %s --file-prefix=3Dtest3 --socket-mem 1024,1024 -- -i" % (self.target, > self.sriov_vfs_port[31].pci), "testpmd>", 120) > + self.session_third.send_expect("./%s/app/testpmd -c 0x1e00 -n 4 = - > w %s --file-prefix=3Dtest3 --socket-mem 1024,1024 -- -i" % (self.target, > self.sriov_vfs_port[31].pci), "testpmd>", 120) > # check the max queue number and current queue number > outstring =3D self.session_secondary.send_expect("show port info > all", "testpmd> ", 120) > self.verify_result(outstring, max_rxqn=3D8, max_txqn=3D8, cur_rx= qn=3D8, > cur_txqn=3D8) > -- > 2.7.4