bgpd: Remove call into event_master_free_unused

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>
This commit is contained in:
Donald Sharp 2024-10-28 17:51:04 -04:00
parent 66feece071
commit 2b1e5ced04

View File

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