From 3d4f372012624b95c9d6709805fce1908700ff13 Mon Sep 17 00:00:00 2001
From: Martin Klozik <martinx.klozik@intel.com>
Date: Tue, 15 Mar 2016 15:30:42 +0000
Subject: 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>
---
 src/dpdk/dpdk.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'src')

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
 
 
 #
-- 
cgit