[dts] [PATCH v1 3/3] framework/virt_dut: setup configured kernel module
Marvin Liu
yong.liu at intel.com
Wed Mar 7 18:06:08 CET 2018
When initializing virtual dut, configured kernel module should be
insmod. Module name and related parameter should be loaded from VM
configuration.
Signed-off-by: Marvin Liu <yong.liu at intel.com>
diff --git a/framework/virt_dut.py b/framework/virt_dut.py
index 62688dc..cd89cb5 100644
--- a/framework/virt_dut.py
+++ b/framework/virt_dut.py
@@ -132,7 +132,7 @@ class VirtDut(DPDKdut):
pci_idx = self.tester.get_local_index(tester_pci)
self.ports_map[index] = pci_idx
- def set_target(self, target, bind_dev=True):
+ def set_target(self, target, bind_dev=True, driver_name="", driver_mode=""):
"""
Set env variable, these have to be setup all the time. Some tests
need to compile example apps by themselves and will fail otherwise.
@@ -150,10 +150,11 @@ class VirtDut(DPDKdut):
self.build_install_dpdk(target)
self.setup_memory(hugepages=1024)
- self.setup_modules(target)
+
+ self.setup_modules(target, driver_name, driver_mode)
if bind_dev:
- self.bind_interfaces_linux('igb_uio')
+ self.bind_interfaces_linux(driver_name)
def prerequisites(self, pkgName, patch, autodetect_topo):
"""
--
1.9.3
More information about the dts
mailing list