diff options
author | Martin Klozik <martinx.klozik@intel.com> | 2015-10-16 06:29:30 +0100 |
---|---|---|
committer | Maryam Tahhan <maryam.tahhan@intel.com> | 2015-10-20 13:44:52 +0000 |
commit | 0bb85c9c85b7aeb74761c6a565e554674a7661c1 (patch) | |
tree | 40cf8f6f697877cab7a598838ba40803638e41b4 /src/dpdk | |
parent | 6f35ae4f20e2f47fae569b29907fa77102ee9ee2 (diff) |
Implement support of 'insmod' and 'modprobe' commands into ModuleManager
Module manager has been enhanced to support both 'insmod' and 'modprobe'
commands for kernel module insertion. In case, that .ko suffix is detected
then insmod will be used otherwise modprobe will be called. This allows
user to specify full path to each module. For example vanilla ovs module
can be defined as "OVS_DIR_VANILLA + 'datapath/linux/openvswitch.ko'"
to load kernel module matching OVS vanilla source tree version.
Change-Id: Ib8d16eca84449ad34d6b307ab836f58d2f0d341b
JIRA: VSPERF-116
Signed-off-by: Martin Klozik <martinx.klozik@intel.com>
Reviewed-by: Billy O Mahony <billy.o.mahony@intel.com>
Reviewed-by: Maryam Tahhan <maryam.tahhan@intel.com>
Reviewed-by: Brian Castelli <brian.castelli@spirent.com>
Diffstat (limited to 'src/dpdk')
-rw-r--r-- | src/dpdk/dpdk.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dpdk/dpdk.py b/src/dpdk/dpdk.py index 0633c7a1..0a63c161 100644 --- a/src/dpdk/dpdk.py +++ b/src/dpdk/dpdk.py @@ -28,13 +28,13 @@ import locale from tools import tasks from conf import settings -from tools.module_manager import ModuleManager, KernelModuleInsertMode +from tools.module_manager import ModuleManager _LOGGER = logging.getLogger(__name__) RTE_PCI_TOOL = os.path.join( settings.getValue('RTE_SDK'), 'tools', 'dpdk_nic_bind.py') -_DPDK_MODULE_MANAGER = ModuleManager(KernelModuleInsertMode.MODPROBE) +_DPDK_MODULE_MANAGER = ModuleManager() # # system management |