dpdk: Support of DPDK16.07 27/16827/1
authorMartin Klozik <martinx.klozik@intel.com>
Wed, 13 Jul 2016 10:04:35 +0000 (11:04 +0100)
committerMartin Klozik <martinx.klozik@intel.com>
Wed, 13 Jul 2016 10:04:35 +0000 (11:04 +0100)
DPDK 16.07 changed the default log level of DPDK enabled applications.
Detection of the end of OVS initialization procedure has been changed
to work for various DPDK versions and for both DPDK and Vanilla OVS.

JIRA: VSPERF-316

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: <bmichalo@redhat.com>
Reviewed-by: <sridhar.rao@spirent.com>
vswitches/ovs.py
vswitches/ovs_dpdk_vhost.py
vswitches/ovs_vanilla.py

index 115ab19..659f7cf 100644 (file)
@@ -46,7 +46,7 @@ class IVSwitchOvs(IVSwitch, tasks.Process):
         """See IVswitch for general description
         """
         self._logger = logging.getLogger(__name__)
-        self._expect = None
+        self._expect = r'bridge|INFO|ovs-vswitchd'
         self._timeout = 30
         self._bridges = {}
         self._vswitchd_args = ['--pidfile=' + self._vswitchd_pidfile_path,
index 2d424bc..0950c42 100644 (file)
@@ -39,7 +39,6 @@ class OvsDpdkVhost(IVSwitchOvs):
     def __init__(self):
         super(OvsDpdkVhost, self).__init__()
         self._logger = logging.getLogger(__name__)
-        self._expect = r'EAL: Master l*core \d+ is ready'
 
         vswitchd_args = []
 
index 89023a7..f880dfa 100644 (file)
@@ -41,7 +41,6 @@ class OvsVanilla(IVSwitchOvs):
         self._logger = logging.getLogger(__name__)
         self._vswitchd_args += ["unix:%s" % self.get_db_sock_path()]
         self._vswitchd_args += settings.getValue('VSWITCHD_VANILLA_ARGS')
-        self._expect = "db.sock: connected"
         self._module_manager = ModuleManager()
 
     def start(self):