]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: Remove call into event_master_free_unused
authorDonald Sharp <sharpd@nvidia.com>
Mon, 28 Oct 2024 21:51:04 +0000 (17:51 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Thu, 31 Oct 2024 18:06:20 +0000 (14:06 -0400)
This call was originally put into place to help reduce
memory problems associated with bgp having a bajillion
events under load and then we would have a bunch of events
ready to be used on the unused list.  In the meantime
code was put into place that limited the depth of the
unused list to 10 elements.  This call has now become
unnecessary.  Let's just remove it.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
bgpd/bgpd.c

index d87c6d775215f9b09f0cd5699112cad7e428c8d0..22f1cf841426072bd171b13db303935f3807d56e 100644 (file)
@@ -4223,8 +4223,6 @@ int bgp_delete(struct bgp *bgp)
        if (bgp->process_queue)
                work_queue_free_and_null(&bgp->process_queue);
 
-       event_master_free_unused(bm->master);
-
        if (!IS_BGP_INSTANCE_HIDDEN(bgp))
                bgp_unlock(bgp); /* initial reference */
        else {