mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 18:56:40 +00:00
ospfd: the maxage_lsa_remover should check whether it needs to yield the cpu
This commit is contained in:
parent
e8f2226195
commit
94b6bfd283
@ -2911,7 +2911,11 @@ ospf_maxage_lsa_remover (struct thread *thread)
|
|||||||
reschedule = 1;
|
reschedule = 1;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* TODO: maybe convert this function to a work-queue */
|
||||||
|
if (thread_should_yield (thread))
|
||||||
|
OSPF_TIMER_ON (ospf->t_maxage, ospf_maxage_lsa_remover, 0);
|
||||||
|
|
||||||
/* Remove LSA from the LSDB */
|
/* Remove LSA from the LSDB */
|
||||||
if (CHECK_FLAG (lsa->flags, OSPF_LSA_SELF))
|
if (CHECK_FLAG (lsa->flags, OSPF_LSA_SELF))
|
||||||
if (IS_DEBUG_OSPF (lsa, LSA_FLOODING))
|
if (IS_DEBUG_OSPF (lsa, LSA_FLOODING))
|
||||||
|
Loading…
Reference in New Issue
Block a user