diff options
author | Mark Stapp <mjs@voltanet.io> | 2018-09-07 21:46:13 +0200 |
---|---|---|
committer | Mark Stapp <mjs@voltanet.io> | 2018-11-21 16:38:08 +0100 |
commit | e5a60d8259d4b969826e622133dff5a6d8330903 (patch) | |
tree | 4b97b184e0990afaae6ba011cd8ef51f0d8398c4 /zebra/zebra_dplane.h | |
parent | zebra: dataplane provider enhancements (diff) | |
download | frr-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.h | 6 |
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 |