From: Maria Matejka Date: Sun, 21 Nov 2021 11:06:19 +0000 (+0100) Subject: BGP: End route refresh before another starts X-Git-Tag: v3.0-alpha1~102 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6abef2b20b88ec2aa747ff3885d7fd1c7d147cef;p=thirdparty%2Fbird.git BGP: End route refresh before another starts --- diff --git a/proto/bgp/bgp.c b/proto/bgp/bgp.c index 573e3d250..36179eb8c 100644 --- a/proto/bgp/bgp.c +++ b/proto/bgp/bgp.c @@ -955,6 +955,9 @@ bgp_refresh_begin(struct bgp_channel *c) if (c->load_state == BFS_LOADING) { log(L_WARN "%s: BEGIN-OF-RR received before END-OF-RIB, ignoring", p->p.name); return; } + if (c->load_state == BFS_REFRESHING) + rt_refresh_end(&c->c.in_req); + c->load_state = BFS_REFRESHING; rt_refresh_begin(&c->c.in_req); }