From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 154DE1B642 for ; Tue, 18 Dec 2018 06:50:57 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Dec 2018 21:50:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,367,1539673200"; d="scan'208";a="126884965" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga002.fm.intel.com with ESMTP; 17 Dec 2018 21:50:56 -0800 Received: from fmsmsx125.amr.corp.intel.com (10.18.125.40) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 17 Dec 2018 21:50:56 -0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX125.amr.corp.intel.com (10.18.125.40) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 17 Dec 2018 21:50:56 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.182]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.222]) with mapi id 14.03.0415.000; Tue, 18 Dec 2018 13:50:54 +0800 From: "Zhu, WenhuiX" To: "Li, WenjieX A" , "dts@dpdk.org" CC: "Li, WenjieX A" , "Zhu, WenhuiX" Thread-Topic: [dts] [PATCH V3] tests/dynamic_queue: unbind the unused ports Thread-Index: AQHUk3YjnOHrS6UG1UCMXQrdbiDYBKWEA9Aw Date: Tue, 18 Dec 2018 05:50:54 +0000 Message-ID: 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: 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 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: Tue, 18 Dec 2018 05:50:58 -0000 Tested-by: Zhu, WenhuiX -----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 Instead of reduce the queue number for fvl_40G, unbind the unused ports for= all nics during test, and bind them after this test suite is done. Signed-off-by: Wenjie Li --- tests/TestSuite_dynamic_queue.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_dynamic_queue.py b/tests/TestSuite_dynamic_que= ue.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 TestDyna= micQueue(TestCase): self.dut_testpmd.quit() =20 def tear_down_all(self): - pass + self.dut.bind_interfaces_linux(driver=3Dself.drivername) -- 2.17.2