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 AE2B81B60E for ; Fri, 14 Dec 2018 07:27:20 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Dec 2018 22:27:19 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,351,1539673200"; d="scan'208";a="129868238" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.240.176.135]) by fmsmga001.fm.intel.com with ESMTP; 13 Dec 2018 22:27:18 -0800 From: Wenjie Li To: dts@dpdk.org Cc: Wenjie Li Date: Fri, 14 Dec 2018 14:30:33 +0800 Message-Id: <1544769033-29893-1-git-send-email-wenjiex.a.li@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [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: Fri, 14 Dec 2018 06:27:21 -0000 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_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 = self.tester.get_local_port(self.used_dut_port) self.tester_intf = self.tester.get_interface(tester_port) self.dut_testpmd = PmdOutput(self.dut) + unbind_nics = [] + if len(self.dut_ports) >= 2: + for i in range (1, len(self.dut_ports)): + unbind_nics.append(self.dut_ports[1]) + self.dut.unbind_interfaces_linux(unbind_nics) def set_up(self): self.dut_testpmd.start_testpmd( @@ -194,4 +199,4 @@ class TestDynamicQueue(TestCase): self.dut_testpmd.quit() def tear_down_all(self): - pass + self.dut.bind_interfaces_linux(driver=self.drivername) -- 2.17.2