test suite reviews and discussions
 help / color / mirror / Atom feed
From: Wenjie Li <wenjiex.a.li@intel.com>
To: dts@dpdk.org
Cc: Wenjie Li <wenjiex.a.li@intel.com>
Subject: [dts] [PTACH V2] tests/dynamic_queue: unbind the unused ports
Date: Thu, 13 Dec 2018 15:09:03 +0800	[thread overview]
Message-ID: <1544684943-28595-1-git-send-email-wenjiex.a.li@intel.com> (raw)

Instead of reduce the queue number for fvl_40G, unbind the unused ports
for all nics.

Signed-off-by: Wenjie Li <wenjiex.a.li@intel.com>

---
 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

                 reply	other threads:[~2018-12-13  7:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1544684943-28595-1-git-send-email-wenjiex.a.li@intel.com \
    --to=wenjiex.a.li@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).