summaryrefslogtreecommitdiffstats
path: root/lib/mqueue.h
diff options
context:
space:
mode:
authorChris Hall <GMCH@hestia.halldom.com>2010-05-27 21:09:56 +0100
committerChris Hall <GMCH@hestia.halldom.com>2010-05-27 21:09:56 +0100
commitd0dcbe07baffdbff39521e5ae8eca3f80a8d6f3e (patch)
tree399779682d9449b2376364cf9338891e6b674e85 /lib/mqueue.h
parent76c460a85aa0aea7dc90948f3b52979d09f94812 (diff)
downloadquagga-d0dcbe07baffdbff39521e5ae8eca3f80a8d6f3e.tar.bz2
quagga-d0dcbe07baffdbff39521e5ae8eca3f80a8d6f3e.tar.xz
Adjustments to scheduling of Routing Engine work.
These changes mean that Quagga copes a little better when there are very large numbers of updates/withrawal messages arriving all at once... ...it is not possible to cure the problem of overloading Quagga by throwing too much at it. However, these changes at least mean that when BGP sessions drop, the Routing Engine will notice that in a reasonable time, and can clear up all routes associated with the session (throwing away any updates/withdraws already received, but not yet dealt with.) Amonst these changes are Chris Caputo's patches for bgp_node locking issues -- see quagga-dev 7960 mailing list message.
Diffstat (limited to 'lib/mqueue.h')
-rw-r--r--lib/mqueue.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/mqueue.h b/lib/mqueue.h
index f22ea022..a28b6606 100644
--- a/lib/mqueue.h
+++ b/lib/mqueue.h
@@ -23,6 +23,7 @@
#define _ZEBRA_MQUEUE_H
#include <stddef.h>
+#include <stdbool.h>
#include "qpthreads.h"
#include "qtime.h"
@@ -243,8 +244,14 @@ mqb_re_init(mqueue_block mqb, mqueue_action action, void* arg0) ;
extern void
mqb_free(mqueue_block mqb) ;
+enum mqb_rank
+{
+ mqb_priority = true,
+ mqb_ordinary = false
+} ;
+
extern void
-mqueue_enqueue(mqueue_queue mq, mqueue_block mqb, int priority) ;
+mqueue_enqueue(mqueue_queue mq, mqueue_block mqb, enum mqb_rank priority) ;
extern mqueue_block
mqueue_dequeue(mqueue_queue mq, int wait, void* arg) ;