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 EAA9E1BE56 for ; Sat, 22 Dec 2018 02:52:31 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Dec 2018 17:52:30 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,383,1539673200"; d="scan'208";a="103958684" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga008.jf.intel.com with ESMTP; 21 Dec 2018 17:52:30 -0800 Received: from fmsmsx111.amr.corp.intel.com (10.18.116.5) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.408.0; Fri, 21 Dec 2018 17:52:30 -0800 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by fmsmsx111.amr.corp.intel.com (10.18.116.5) with Microsoft SMTP Server (TLS) id 14.3.408.0; Fri, 21 Dec 2018 17:52:29 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.201]) by shsmsx102.ccr.corp.intel.com ([169.254.2.182]) with mapi id 14.03.0415.000; Sat, 22 Dec 2018 09:52:27 +0800 From: "Tu, Lijuan" To: "Li, WenjieX A" , "dts@dpdk.org" CC: "Li, WenjieX A" Thread-Topic: [dts] [PATCH V3] tests/dynamic_queue: unbind the unused ports Thread-Index: AQHUk3Yj7RcTnPrGEUaKYOM9GcrmVKWKCUwA Date: Sat, 22 Dec 2018 01:52:26 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0B9E5A82@SHSMSX101.ccr.corp.intel.com> References: <1544769033-29893-1-git-send-email-wenjiex.a.li@intel.com> In-Reply-To: <1544769033-29893-1-git-send-email-wenjiex.a.li@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.0.400.15 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZjgyYmMzNDktZjgzMS00ZDBjLWJlNjctMTUwYTdhYzc3N2EzIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoid2lDbncyUjlXSTlGVythdnJqOFpINndRd3I3cUo1ck80SlwvN25rM0l1UEp2TTUySWNNMVwvdU1OYmF2czZCTTZEIn0= 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 V3] tests/dynamic_queue: unbind the unused 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: Sat, 22 Dec 2018 01:52:32 -0000 Could you clarify why it' s necessary to reduce the ports to only one? BTW, though you'd like to use only one port, unbind/bind ports is not a goo= d option, prefer to add testpmd parameter "-w self.dut.get_port_pci(self.du= t_ports[0])". > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Wenjie Li > Sent: Friday, December 14, 2018 2:31 PM > To: dts@dpdk.org > Cc: Li, WenjieX A > Subject: [dts] [PATCH V3] tests/dynamic_queue: unbind the unused ports >=20 > Instead of reduce the queue number for fvl_40G, unbind the unused ports f= or > all nics during test, and bind them after this test suite is done. >=20 > Signed-off-by: Wenjie Li > --- > tests/TestSuite_dynamic_queue.py | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) >=20 > diff --git a/tests/TestSuite_dynamic_queue.py > b/tests/TestSuite_dynamic_queue.py > index f155686..e145f53 100644 > --- a/tests/TestSuite_dynamic_queue.py > +++ b/tests/TestSuite_dynamic_queue.py > @@ -25,6 +25,11 @@ class TestDynamicQueue(TestCase): > tester_port =3D self.tester.get_local_port(self.used_dut_port) > self.tester_intf =3D self.tester.get_interface(tester_port) > self.dut_testpmd =3D PmdOutput(self.dut) > + unbind_nics =3D [] > + if len(self.dut_ports) >=3D 2: > + for i in range (1, len(self.dut_ports)): > + unbind_nics.append(self.dut_ports[1]) > + self.dut.unbind_interfaces_linux(unbind_nics) >=20 > def set_up(self): > self.dut_testpmd.start_testpmd( @@ -194,4 +199,4 @@ class > TestDynamicQueue(TestCase): > self.dut_testpmd.quit() >=20 > def tear_down_all(self): > - pass > + self.dut.bind_interfaces_linux(driver=3Dself.drivername) > -- > 2.17.2