]> git.proxmox.com Git - mirror_frr.git/commit - zebra/zebra_rib.c
zebra: Do not allow same rib_dest_t be queued multiple times to meta queue
authorDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 25 Sep 2017 12:10:24 +0000 (08:10 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 25 Sep 2017 12:10:24 +0000 (08:10 -0400)
commit1ca60f2c3ebe0a33c508de1ab81edb2bde5d9c4c
tree21aaae4de4406c6da1bfe91dd6bcbeabb6da6a43
parentc84ed8700efc07d66d2ea7373dcc2d9e116f1003
zebra: Do not allow same rib_dest_t be queued multiple times to meta queue

If we have already scheduled a node to be on the meta_queue, there is no
need to schedule it up again.

On startup we are calling rib_update() multiple times per connected route.
Due to the multiple ways we can get callbacks for adding a connected route
I decided it was best to just improve meta_queue performance as opposed
to trying to figure out all the different ways across all the platforms
that we can decide that a connected route has changed.  This appears
to solve the issue with a very large # of interfaces coming up
at the same time on startup.

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