]> git.proxmox.com Git - mirror_frr.git/blobdiff - zebra/zserv.h
zebra: reduce rib workqueue retry timeout
[mirror_frr.git] / zebra / zserv.h
index f21ea17fe884d1fe3d63b5afd4f54b489d7bc611..f0b8934ae13053cfc2a0e988f6c812f3e99b15dc 100644 (file)
@@ -73,6 +73,9 @@ struct zserv {
        struct thread *t_read;
        struct thread *t_write;
 
+       /* Event for message processing, for the main pthread */
+       struct thread *t_process;
+
        /* Threads for the main pthread */
        struct thread *t_cleanup;
 
@@ -157,9 +160,9 @@ struct zserv {
        /* monotime of last message sent */
        _Atomic uint32_t last_write_time;
        /* command code of last message read */
-       _Atomic uint16_t last_read_cmd;
+       _Atomic uint32_t last_read_cmd;
        /* command code of last message written */
-       _Atomic uint16_t last_write_cmd;
+       _Atomic uint32_t last_write_cmd;
 };
 
 #define ZAPI_HANDLER_ARGS                                                      \
@@ -184,6 +187,7 @@ struct zebra_t {
 
 /* rib work queue */
 #define ZEBRA_RIB_PROCESS_HOLD_TIME 10
+#define ZEBRA_RIB_PROCESS_RETRY_TIME 1
        struct work_queue *ribq;
        struct meta_queue *mq;