1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

BMP: Use generic channel feed instead of direct walk over rtable

Now we use rt_notify() and channels for both feed and notifications,
in both import tables (pre-policy) and regular tables (post-policy).

Remove direct walk in bmp_route_monitor_snapshot().
This commit is contained in:
Ondrej Zajicek
2023-08-21 04:20:32 +02:00
parent ef6ab5ce86
commit 52641e0866
4 changed files with 53 additions and 34 deletions

View File

@@ -451,10 +451,7 @@ channel_start_export(struct channel *c)
ASSERT(c->channel_state == CS_UP);
ASSERT(c->export_state == ES_DOWN);
if (!c->bmp_hack)
channel_schedule_feed(c, 1); /* Sets ES_FEEDING */
else
c->export_state = ES_READY;
channel_schedule_feed(c, 1); /* Sets ES_FEEDING */
}
static void