summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_lsa.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2010-02-05 01:41:22 +0100
committerDavid Lamparter <equinox@diac24.net>2010-02-05 01:41:22 +0100
commite473267ee96f48514b879f5dcaba2db64f0de9d1 (patch)
tree6c252d564a2e2c00ef12abddd02fccd7ea89bc05 /ospfd/ospf_lsa.c
parentf06277c84f7604b380bdac491e23c848d4952d18 (diff)
parentb0c8c48d7fa4c691ddbe07403ccc37a26258a25e (diff)
downloadquagga-e473267ee96f48514b879f5dcaba2db64f0de9d1.tar.bz2
quagga-e473267ee96f48514b879f5dcaba2db64f0de9d1.tar.xz
Merge branch 'patches/pj_workqueue' into dn42
Conflicts: lib/thread.c
Diffstat (limited to 'ospfd/ospf_lsa.c')
-rw-r--r--ospfd/ospf_lsa.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ospfd/ospf_lsa.c b/ospfd/ospf_lsa.c
index 6dd1d341..25bd754d 100644
--- a/ospfd/ospf_lsa.c
+++ b/ospfd/ospf_lsa.c
@@ -2914,6 +2914,10 @@ ospf_maxage_lsa_remover (struct thread *thread)
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 */
if (CHECK_FLAG (lsa->flags, OSPF_LSA_SELF))
if (IS_DEBUG_OSPF (lsa, LSA_FLOODING))