From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id EA87D1B57C for ; Thu, 12 Jul 2018 05:14:54 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Jul 2018 20:14:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,341,1526367600"; d="scan'208";a="54401566" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga008.fm.intel.com with ESMTP; 11 Jul 2018 20:14:49 -0700 Received: from fmsmsx154.amr.corp.intel.com (10.18.116.70) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 11 Jul 2018 20:14:49 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by FMSMSX154.amr.corp.intel.com (10.18.116.70) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 11 Jul 2018 20:14:48 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.100]) by shsmsx102.ccr.corp.intel.com ([169.254.2.124]) with mapi id 14.03.0319.002; Thu, 12 Jul 2018 11:14:47 +0800 From: "Liu, Yong" To: "Peng, Yuan" , "dts@dpdk.org" CC: "Peng, Yuan" Thread-Topic: [dts] [PATCH] tests: TestSuite_runtime_queue_number.py Thread-Index: AQHUGNpDNJAVbGNoMEGorF8j7sFxEKSK6qCA Date: Thu, 12 Jul 2018 03:14:46 +0000 Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E630F8753@SHSMSX103.ccr.corp.intel.com> References: <1531287938-78348-1-git-send-email-yuan.peng@intel.com> In-Reply-To: <1531287938-78348-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: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNWYxZDA0MzYtZmVhZS00OWM0LThhODEtZTA2ZGEzNDcxMzVkIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoieHFIaXU5VkRTMDhcL0Nvd0Vza0YyMEhFRUNOYnlreTJNME1uTlRQa3RXbTl4XC9hb3I3R25WWXZSaHVadGtpZUxTIn0= 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] 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: Thu, 12 Jul 2018 03:14:55 -0000 Yuan, you'd better update VF number in test plan.=20 I think 100 packets maybe not spread on all VF devices, more number like 25= 6 or 512 will be needed. Thanks, Marvin > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Peng Yuan > Sent: Wednesday, July 11, 2018 1:46 PM > To: dts@dpdk.org > Cc: Peng, Yuan > Subject: [dts] [PATCH] tests: TestSuite_runtime_queue_number.py >=20 > there are different vf number in different fortville 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..2daac45 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(100): > 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 100, "Th= ere are > some packets lost.") >=20 > def test_set_valid_vf_max_qn(self): > """ > @@ -238,18 +238,24 @@ class TestRuntime_Queue_Number(TestCase): > """ > set max queue number when setting 32 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