]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: Limit meta_queue insertion to one time.
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 3 Jan 2019 16:56:35 +0000 (11:56 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 11 Jan 2019 16:48:14 +0000 (11:48 -0500)
commitf52ed6779688e918bd53edd18574569313d7e023
treec6af94e3e202ebd07e6012f963def88cfda550c7
parentb707100701304347b4fe13eb89efa9d10f81048a
zebra: Limit meta_queue insertion to one time.

Modify the meta_queue insertion such that we only enqueue
the route_node into one meta_queue instead of several.

Suppose we have multiple route_entries associated with
a particular node from rip, bgp, staticd.  If we receive a
route update from rip, we would enqueue the route_node into
the 1, 2, 3 meta-nodes.  Which means that we would run
the entire process of figuring out a route 3 times, while
nothing would change the second two times.

Modify the code to choose the lowest meta-queue and
install it into that one for processing.

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