[ovs-dev] [RFC PATCH 06/21] bridge: Invoke keepalive framework.

Bhanuprakash Bodireddy bhanuprakash.bodireddy at intel.com
Wed Jun 7 16:15:02 UTC 2017


With this commit the keepalive framework is invoked when enable-keepalive
is set to 'true' in ovsdb. As part of initialization the shared memory block
is created and initialized. Also the keepalive data structure is initialized
and the callback functions are registered if DPDK datapath is enabled.

Signed-off-by: Bhanuprakash Bodireddy <bhanuprakash.bodireddy at intel.com>
---
 vswitchd/bridge.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c
index cc7a43b..d40879d 100644
--- a/vswitchd/bridge.c
+++ b/vswitchd/bridge.c
@@ -34,6 +34,7 @@
 #include "hmapx.h"
 #include "if-notifier.h"
 #include "jsonrpc.h"
+#include "keepalive.h"
 #include "lacp.h"
 #include "mac-learning.h"
 #include "mcast-snooping.h"
@@ -2958,6 +2959,9 @@ bridge_run(void)
         dpdk_init(&cfg->other_config);
     }
 
+    /* Initialize Keepalive framework */
+    ka_init(&cfg->other_config);
+
     /* Initialize the ofproto library.  This only needs to run once, but
      * it must be done after the configuration is set.  If the
      * initialization has already occurred, bridge_init_ofproto()
-- 
2.4.11



More information about the dev mailing list