From 7cdb1a8445ecff8ad0f2eb532df5eb2112d921e0 Mon Sep 17 00:00:00 2001 From: Mark Stapp Date: Wed, 23 May 2018 12:20:43 -0400 Subject: zebra: start dataplane layer work Reduce or eliminate use of global zebra_ns structs in a couple of netlink/kernel code paths, so that those paths can potentially be made asynch eventually. Slide netlink_talk_info into place to remove dependency on core zebra structs; add accessors for dplane context block Start init of route context from zebra core re and rn structs; start queueing and event handling for incoming route updates. Expose netlink apis that don't rely on zebra core structs; add parallel route-update code path using the dplane ctx; simplest possible event loop to process queued route' updates. Signed-off-by: Mark Stapp --- zebra/zapi_msg.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'zebra/zapi_msg.h') diff --git a/zebra/zapi_msg.h b/zebra/zapi_msg.h index 29fe59bab..0dcfd5d74 100644 --- a/zebra/zapi_msg.h +++ b/zebra/zapi_msg.h @@ -70,6 +70,8 @@ extern int zsend_pw_update(struct zserv *client, struct zebra_pw *pw); extern int zsend_route_notify_owner(struct route_entry *re, const struct prefix *p, enum zapi_route_notify_owner note); +extern int zsend_route_notify_owner_ctx(dplane_ctx_h ctx, + enum zapi_route_notify_owner note); extern void zsend_rule_notify_owner(struct zebra_pbr_rule *rule, enum zapi_rule_notify_owner note); -- cgit v1.2.3