mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Nest: Use bitmaps to keep track of exported routes
Use a hierarchical bitmap in a routing table to assign ids to routes, and then use bitmaps (indexed by route id) in channels to keep track whether routes were exported. This avoids unreliable and inefficient re-evaluation of filters for old routes in order to determine whether they were exported.
This commit is contained in:
@@ -736,11 +736,8 @@ krt_prune(struct krt_proto *p)
|
||||
switch (verdict)
|
||||
{
|
||||
case KRF_CREATE:
|
||||
if (new && (n->n.flags & KRF_INSTALLED))
|
||||
{
|
||||
krt_trace_in(p, new, "reinstalling");
|
||||
krt_replace_rte(p, n, new, NULL);
|
||||
}
|
||||
krt_trace_in(p, new, "reinstalling");
|
||||
krt_replace_rte(p, n, new, NULL);
|
||||
break;
|
||||
case KRF_SEEN:
|
||||
case KRF_IGNORE:
|
||||
|
Reference in New Issue
Block a user