]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: capture dplane plugin flags
authorMark Stapp <mjs@voltanet.io>
Wed, 4 Dec 2019 19:54:38 +0000 (14:54 -0500)
committerMark Stapp <mjs@voltanet.io>
Wed, 4 Dec 2019 19:54:38 +0000 (14:54 -0500)
The flags can be important - like "threaded" - so we need to
actually capture them when plugins are registered.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
zebra/zebra_dplane.c

index bc4f51f70f64e668cf4d356d8b559ec1798b4700..ca72ea5227cd556882659dc8d6ce3b0cbd00a43e 100644 (file)
@@ -2814,6 +2814,7 @@ int dplane_provider_register(const char *name,
        TAILQ_INIT(&(p->dp_ctx_in_q));
        TAILQ_INIT(&(p->dp_ctx_out_q));
 
+       p->dp_flags = flags;
        p->dp_priority = prio;
        p->dp_fp = fp;
        p->dp_start = start_fp;