Merge pull request #4817 from NaveenThanikachalam/652

bgpd: Optimizing route-map's processing of dependencies.
This commit is contained in:
Donald Sharp 2019-08-12 08:45:51 -04:00 committed by GitHub
commit 3a6a0888f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3406,13 +3406,17 @@ int bgp_route_map_update_timer(struct thread *thread)
static void bgp_route_map_mark_update(const char *rmap_name)
{
if (bm->t_rmap_update == NULL) {
struct listnode *node, *nnode;
struct bgp *bgp;
/* If new update is received before the current timer timed out,
* turn it off and start a new timer.
*/
if (bm->t_rmap_update != NULL)
THREAD_OFF(bm->t_rmap_update);
/* rmap_update_timer of 0 means don't do route updates */
if (bm->rmap_update_timer) {
bm->t_rmap_update = NULL;
thread_add_timer(bm->master, bgp_route_map_update_timer,
NULL, bm->rmap_update_timer,
&bm->t_rmap_update);
@ -3431,7 +3435,6 @@ static void bgp_route_map_mark_update(const char *rmap_name)
vnc_routemap_update(bgp, __func__);
#endif
}
}
}
static void bgp_route_map_add(const char *rmap_name)