]> git.proxmox.com Git - mirror_frr.git/commit
staticd: refcount the nht add/removal
authorDonald Sharp <sharpd@cumulusnetworks.com>
Sat, 25 Aug 2018 00:42:45 +0000 (20:42 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Sat, 25 Aug 2018 12:11:01 +0000 (08:11 -0400)
commit74f0a94efdfca6c1b3a03d14bf095b6a8f8a2f1f
tree647aa8a51caed3cccad0fc40c002d283d81864e6
parent1d30d1f4a8241ca45df4eb70181211f5af0ff487
staticd: refcount the nht add/removal

When we add / remove a nexthop that we need to track,
keep track of the number of times we have done this
for each nexthop.  Consequently keep track of the
number of available nexthops, so that we can
just install new routes when we get one
that uses a pre-existing nexthop.  Deletion of
nexthops is done on refcount going to 0.
Removal of routes is handled elsewhere for removal.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
staticd/static_zebra.c