aboutsummaryrefslogtreecommitdiffstats
path: root/src/dpdk
diff options
context:
space:
mode:
authorMartin Klozik <martinx.klozik@intel.com>2016-03-15 15:30:42 +0000
committerMaryam Tahhan <maryam.tahhan@intel.com>2016-03-21 15:30:24 +0000
commit3d4f372012624b95c9d6709805fce1908700ff13 (patch)
tree6ffd451d7144aa14e6c8a976603a72462af78051 /src/dpdk
parentb55c8beb6003f07f025fc0edbc08c3e0fcaed064 (diff)
bugfix: Fix errors related to removal of kernel modules
Internal module manager is responsible for removal of all vsperf specific kernel modules. Order of modules has been changed to respect possible dependencies among modules. Manager has been improved to detect modules automatically loaded by modprobe to solve dependecies. These modules are automatically removed. Code of module manager has been refactored. Change-Id: I4484f3bea7d9900db688f96edd5c3c6d4a304742 JIRA: VSPERF-259 Signed-off-by: Martin Klozik <martinx.klozik@intel.com> Reviewed-by: Maryam Tahhan <maryam.tahhan@intel.com> Reviewed-by: Al Morton <acmorton@att.com> Reviewed-by: Christian Trautman <ctrautma@redhat.com> Reviewed-by: Brian Castelli <brian.castelli@spirent.com>
Diffstat (limited to 'src/dpdk')
-rw-r--r--src/dpdk/dpdk.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/dpdk/dpdk.py b/src/dpdk/dpdk.py
index 127ecaf2..f8cbbd81 100644
--- a/src/dpdk/dpdk.py
+++ b/src/dpdk/dpdk.py
@@ -111,13 +111,14 @@ def insert_vhost_modules():
mod_path_prefix = os.path.join(settings.getValue('RTE_SDK'),
'lib',
'librte_vhost')
- _DPDK_MODULE_MANAGER.insert_module_group('VHOST_MODULE', mod_path_prefix)
+ _DPDK_MODULE_MANAGER.insert_module_group(settings.getValue('VHOST_MODULE'), mod_path_prefix)
def remove_vhost_modules():
"""Removes all VHOST related kernel modules
"""
- _DPDK_MODULE_MANAGER.remove_module_group(settings.getValue('VHOST_MODULE'))
+ # all modules are removed automatically by _remove_modules() method
+ pass
#