summaryrefslogtreecommitdiff
path: root/lib/memory.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-08-24 20:42:45 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-08-25 08:11:01 -0400
commit74f0a94efdfca6c1b3a03d14bf095b6a8f8a2f1f (patch)
tree647aa8a51caed3cccad0fc40c002d283d81864e6 /lib/memory.c
parent1d30d1f4a8241ca45df4eb70181211f5af0ff487 (diff)
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>
Diffstat (limited to 'lib/memory.c')
0 files changed, 0 insertions, 0 deletions