summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_dplane.h
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2018-09-07 21:46:13 +0200
committerMark Stapp <mjs@voltanet.io>2018-11-21 16:38:08 +0100
commite5a60d8259d4b969826e622133dff5a6d8330903 (patch)
tree4b97b184e0990afaae6ba011cd8ef51f0d8398c4 /zebra/zebra_dplane.h
parentzebra: dataplane provider enhancements (diff)
downloadfrr-e5a60d8259d4b969826e622133dff5a6d8330903.tar.xz
frr-e5a60d8259d4b969826e622133dff5a6d8330903.zip
zebra: reorg dataplane pthread start
Move dataplane pthread start later in the zebra startup; make the 'test' dplane provider conditional Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'zebra/zebra_dplane.h')
-rw-r--r--zebra/zebra_dplane.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/zebra/zebra_dplane.h b/zebra/zebra_dplane.h
index 844fd5960..6f471e65a 100644
--- a/zebra/zebra_dplane.h
+++ b/zebra/zebra_dplane.h
@@ -324,6 +324,12 @@ int dplane_results_register(dplane_results_fp fp);
*/
void zebra_dplane_init(void);
+/*
+ * Start the dataplane pthread. This step needs to be run later than the
+ * 'init' step, in case zebra has fork-ed.
+ */
+void zebra_dplane_start(void);
+
/* Finalize/cleanup apis, one called early as shutdown is starting,
* one called late at the end of zebra shutdown, and then one called
* from the zebra main pthread to stop the dplane pthread and