summaryrefslogtreecommitdiff
path: root/zebra/zebra_router.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-08-27 14:36:46 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-10-24 06:53:09 -0400
commit7f0ea8a4a23f4500421e89268b442cf145d0d75f (patch)
treec0ed158240450cff618b54cfe61ab9775ae1ba98 /zebra/zebra_router.h
parent89272910f738c05ba7986e7d91c14dc0eb1f6ba6 (diff)
zebra: Move rules_hash to zrouter
Move the rules_hash to the zrouter data structure and provide the additional bit of work needed to lookup the rule based upon the namespace id as well. Make the callers of functions not care about what namespace id we are in. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_router.h')
-rw-r--r--zebra/zebra_router.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/zebra/zebra_router.h b/zebra/zebra_router.h
index 456f168227..246f3857c2 100644
--- a/zebra/zebra_router.h
+++ b/zebra/zebra_router.h
@@ -47,8 +47,11 @@ RB_PROTOTYPE(zebra_router_table_head, zebra_router_table,
struct zebra_router {
struct zebra_router_table_head tables;
+
/* L3-VNI hash table (for EVPN). Only in default instance */
struct hash *l3vni_table;
+
+ struct hash *rules_hash;
};
extern struct zebra_router zrouter;