From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id C1E89239 for ; Mon, 5 Nov 2018 03:40:47 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Nov 2018 18:40:46 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,466,1534834800"; d="scan'208";a="278308144" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga006.fm.intel.com with ESMTP; 04 Nov 2018 18:40:45 -0800 Received: from fmsmsx154.amr.corp.intel.com (10.18.116.70) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.408.0; Sun, 4 Nov 2018 18:40:45 -0800 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.408.0; Sun, 4 Nov 2018 18:40:44 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.102]) by shsmsx102.ccr.corp.intel.com ([169.254.2.84]) with mapi id 14.03.0415.000; Mon, 5 Nov 2018 10:40:43 +0800 From: "Han, YingyaX" To: "Tu, Lijuan" , "dts@dpdk.org" Thread-Topic: [dts] [PATCH V1]tests/runtime_queue_number: fix the issue ofcreating VF on eagle in two ports Thread-Index: AQHUdKewzWkx9gehFU2ESyf7sJ7Dp6VAdCsQ Date: Mon, 5 Nov 2018 02:40:42 +0000 Message-ID: <9AC1400278453341942179604C2BF1260B8C0D3A@SHSMSX101.ccr.corp.intel.com> References: <1541145438-21684-1-git-send-email-yingyax.han@intel.com> <8CE3E05A3F976642AAB0F4675D0AD20E0B9B66AB@SHSMSX101.ccr.corp.intel.com> In-Reply-To: <8CE3E05A3F976642AAB0F4675D0AD20E0B9B66AB@SHSMSX101.ccr.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: 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/runtime_queue_number: fix the issue ofcreating VF on eagle in two ports 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, 05 Nov 2018 02:40:48 -0000 Hi lijuan, VF number due to FVL family NICs have different queue numbers. So it's cha= nged based on device type. Please refer to the test plan. """ Create 32 vfs on four ports fortville NIC:: =20 echo 32 > /sys/bus/pci/devices/0000\:05\:00.0/max_vfs =20 Create 64 vfs on two ports fortville NIC:: echo 64 > /sys/bus/pci/devices/0000\:05\:00.0/max_vfs """ =20 thanks Yingya -----Original Message----- From: Tu, Lijuan=20 Sent: Monday, November 5, 2018 9:34 AM To: Han, YingyaX ; dts@dpdk.org Cc: Han, YingyaX Subject: RE: [dts] [PATCH V1]tests/runtime_queue_number: fix the issue ofcr= eating VF on eagle in two ports > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of han,yingya > Sent: Friday, November 2, 2018 3:57 PM > To: dts@dpdk.org > Cc: Han, YingyaX > Subject: [dts] [PATCH V1]tests/runtime_queue_number: fix the issue=20 > ofcreating VF on eagle in two ports >=20 > FVL_eagle nic has two specifications, namely 2*10G and 4*10G. >=20 > Signed-off-by: han,yingya > --- > tests/TestSuite_runtime_queue_number.py | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/tests/TestSuite_runtime_queue_number.py > b/tests/TestSuite_runtime_queue_number.py > index 12263f3..4a51fa2 100644 > --- a/tests/TestSuite_runtime_queue_number.py > +++ b/tests/TestSuite_runtime_queue_number.py > @@ -251,12 +251,12 @@ class TestRuntime_Queue_Number(TestCase): > """ > set max queue number when setting max VFs on 1 PF port. > """ > - if (self.nic in ["fortville_eagle", "fortpark_TLV"]): > + if (self.nic in ["fortville_eagle", "fortpark_TLV"]) and > len(self.dut_ports) > 2: [Lijuan] why require 2 pf ports, I found only 1 port used here. > self.setup_env(32) > # failed to set VF max queue num to 16. > out =3D self.pmdout.start_testpmd("%s" % self.cores,=20 > eal_param=3D"-w %s,queue-num-per-vf=3D16 --file-prefix=3Dtest1 --socket-m= em=20 > 1024,1024" % self.pf_pci) > self.verify("exceeds the hardware maximum 384" in out,=20 > "the queue num exceeds the hardware maximum 384") > - elif (self.nic in ["fortville_spirit", "fortville_spirit_single"= ]): > + elif (self.nic in ["fortville_spirit",=20 > + "fortville_spirit_single", > "fortville_eagle"]): > self.setup_env(64) > # failed to set VF max queue num to 16. > out =3D self.pmdout.start_testpmd("%s" % self.cores,=20 > eal_param=3D"-w %s,queue-num-per-vf=3D16 --file-prefix=3Dtest1 --socket-m= em=20 > 1024,1024" % self.pf_pci) > -- > 2.17.2