diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-08-27 20:36:46 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-10-24 12:53:09 +0200 |
commit | 7f0ea8a4a23f4500421e89268b442cf145d0d75f (patch) | |
tree | c0ed158240450cff618b54cfe61ab9775ae1ba98 /zebra/zebra_router.h | |
parent | zebra: Start breakup of zns into zrouter and zns (diff) | |
download | frr-7f0ea8a4a23f4500421e89268b442cf145d0d75f.tar.xz frr-7f0ea8a4a23f4500421e89268b442cf145d0d75f.zip |
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.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/zebra/zebra_router.h b/zebra/zebra_router.h index 456f16822..246f3857c 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; |