test suite reviews and discussions
 help / color / mirror / Atom feed
From: Xiao Qimai <qimaix.xiao@intel.com>
To: dts@dpdk.org
Cc: Xiao Qimai <qimaix.xiao@intel.com>
Subject: [dts] [PATCH V1]vhost_dequeue_zero_copy: vhost_dequeue_zero_copy need run with igb_uio driver
Date: Wed, 22 Apr 2020 18:11:24 +0800	[thread overview]
Message-ID: <1587550284-401403-1-git-send-email-qimaix.xiao@intel.com> (raw)

*. change nic driver to igb_uio for this test

Signed-off-by: Xiao Qimai <qimaix.xiao@intel.com>
---
 tests/TestSuite_vhost_dequeue_zero_copy.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/tests/TestSuite_vhost_dequeue_zero_copy.py b/tests/TestSuite_vhost_dequeue_zero_copy.py
index e13e385..8fca47a 100644
--- a/tests/TestSuite_vhost_dequeue_zero_copy.py
+++ b/tests/TestSuite_vhost_dequeue_zero_copy.py
@@ -60,6 +60,11 @@ class TestVhostDequeueZeroCopy(TestCase):
         self.frame_sizes = [64, 128, 256, 512, 1024, 1518]
         self.dut_ports = self.dut.get_ports()
         self.verify(len(self.dut_ports) >= 1, "Insufficient ports for testing")
+        self.def_driver = self.dut.ports_info[self.dut_ports[0]]["port"].get_nic_driver()
+        if self.def_driver != "igb_uio":
+            self.dut.setup_modules_linux(self.target, 'igb_uio', '')
+            self.dut.bind_interfaces_linux('igb_uio', nics_to_bind=self.dut_ports)
+            self.driver_chg = True
         self.ports_socket = self.dut.get_numa_id(self.dut_ports[0])
         self.dst_mac = self.dut.get_mac_address(self.dut_ports[0])
         self.tx_port = self.tester.get_local_port(self.dut_ports[0])
@@ -504,5 +509,7 @@ class TestVhostDequeueZeroCopy(TestCase):
         """
         Run after each test suite.
         """
+        if getattr(self, "driver_chg", None):
+            self.dut.bind_interfaces_linux(self.def_driver, nics_to_bind=self.dut_ports)
         if getattr(self, 'vhost_user', None):
             self.dut.close_session(self.vhost_user)
-- 
1.8.3.1


             reply	other threads:[~2020-04-22 10:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-22 10:11 Xiao Qimai [this message]
2020-04-23  1:27 ` Han, YingyaX
2020-04-23  5:54 ` Tu, Lijuan

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=1587550284-401403-1-git-send-email-qimaix.xiao@intel.com \
    --to=qimaix.xiao@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).