]> git.proxmox.com Git - mirror_frr.git/commitdiff
zebra: capture dplane plugin flags
authorMark Stapp <mjs@voltanet.io>
Thu, 5 Dec 2019 21:33:51 +0000 (16:33 -0500)
committerMark Stapp <mjs@voltanet.io>
Thu, 5 Dec 2019 21:33:51 +0000 (16:33 -0500)
[7.2 version]
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 ffc1615fcb8cd0cf73738801e5d213b0bcc686ef..7dfb4a152e46c181e03625d076da001dc2946724 100644 (file)
@@ -2545,6 +2545,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;