From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 1F7F51B49C for ; Thu, 13 Dec 2018 08:05:50 +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 fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Dec 2018 23:05:50 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,347,1539673200"; d="scan'208";a="125492174" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.240.176.135]) by fmsmga002.fm.intel.com with ESMTP; 12 Dec 2018 23:05:49 -0800 From: Wenjie Li To: dts@dpdk.org Cc: Wenjie Li Date: Thu, 13 Dec 2018 15:09:03 +0800 Message-Id: <1544684943-28595-1-git-send-email-wenjiex.a.li@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PTACH V2] 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: Thu, 13 Dec 2018 07:05:51 -0000 Instead of reduce the queue number for fvl_40G, unbind the unused ports for all nics. 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..dd98eba 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() -- 2.17.2