diff options
author | Mark Stapp <mjs@voltanet.io> | 2018-12-13 20:15:27 +0100 |
---|---|---|
committer | Mark Stapp <mjs@voltanet.io> | 2018-12-13 20:15:27 +0100 |
commit | 6dd7b8489409f40dc6c91ae6de2da27fee6b093c (patch) | |
tree | 1ae4411e7ba2cebf4e23bab29b86a0cfbd3f10d5 /zebra/zserv.h | |
parent | libs: support timeout for workqueue retries (diff) | |
download | frr-6dd7b8489409f40dc6c91ae6de2da27fee6b093c.tar.xz frr-6dd7b8489409f40dc6c91ae6de2da27fee6b093c.zip |
zebra: use a small retry timeout for the rib workqueue
In the zebra rib processing workqueue, set a small timeout
so that we will wait a short time if the queue into the
async dataplane is full. This helps avoid a situation where
the zebra main pthread constantly retries rib work without
giving the dataplane pthread a chance to make progress.
Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'zebra/zserv.h')
-rw-r--r-- | zebra/zserv.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/zebra/zserv.h b/zebra/zserv.h index f7967f54f..fe1dbdbfe 100644 --- a/zebra/zserv.h +++ b/zebra/zserv.h @@ -184,6 +184,7 @@ struct zebra_t { /* rib work queue */ #define ZEBRA_RIB_PROCESS_HOLD_TIME 10 +#define ZEBRA_RIB_PROCESS_RETRY_TIME 5 struct work_queue *ribq; struct meta_queue *mq; |