summaryrefslogtreecommitdiff
path: root/zebra/rib.h
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2018-05-23 12:20:43 -0400
committerMark Stapp <mjs@voltanet.io>2018-10-25 08:34:30 -0400
commit7cdb1a8445ecff8ad0f2eb532df5eb2112d921e0 (patch)
treefb34cd690dff402df2e4f5323d697f18582b2cfc /zebra/rib.h
parent6cd85474f80492d4721966610357109593ae4ab9 (diff)
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 <mjs@voltanet.io>
Diffstat (limited to 'zebra/rib.h')
-rw-r--r--zebra/rib.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/zebra/rib.h b/zebra/rib.h
index f3aead32d8..97eae79f03 100644
--- a/zebra/rib.h
+++ b/zebra/rib.h
@@ -91,6 +91,9 @@ struct route_entry {
/* Nexthop information. */
uint8_t nexthop_num;
uint8_t nexthop_active_num;
+
+ /* Sequence value incremented for each dataplane operation */
+ uint32_t dplane_sequence;
};
/* meta-queue structure: