]> git.puffer.fish Git - mirror/frr.git/commit
zebra: Move zvrf->other_tables into zns
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 14 Feb 2018 01:25:11 +0000 (20:25 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 23 Feb 2018 12:08:36 +0000 (07:08 -0500)
commit5335613bc741a45a2f307e66b73b4f1303567146
tree750eea82e462498314e038778c17532538a23f9f
parent8d056acc82e16b83a56d82960e1d3f3dfbabfef9
zebra: Move zvrf->other_tables into zns

The other_tables data structure does not belong to a vrf.
It belongs to the zns.  This is because each vrf does not
need to have copies of each of other_tables.

Additionally move the array into a RB_TREE.  This will allow
us to sort quickly and easily expand the number of tables
we can support to beyond the ZEBRA_KERNEL_TABLE_MAX define.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
zebra/zebra_ns.c
zebra/zebra_ns.h
zebra/zebra_vrf.c
zebra/zebra_vrf.h