test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1]vhost_dequeue_zero_copy: vhost_dequeue_zero_copy need run with igb_uio driver
@ 2020-04-22 10:11 Xiao Qimai
  2020-04-23  1:27 ` Han, YingyaX
  2020-04-23  5:54 ` Tu, Lijuan
  0 siblings, 2 replies; 3+ messages in thread
From: Xiao Qimai @ 2020-04-22 10:11 UTC (permalink / raw)
  To: dts; +Cc: Xiao Qimai

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-04-23  5:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-22 10:11 [dts] [PATCH V1]vhost_dequeue_zero_copy: vhost_dequeue_zero_copy need run with igb_uio driver Xiao Qimai
2020-04-23  1:27 ` Han, YingyaX
2020-04-23  5:54 ` Tu, Lijuan

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