summaryrefslogtreecommitdiffstats
path: root/zebra/zserv.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-10-25 17:03:41 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-10-25 17:03:41 +0200
commita37ef435e9514a455931ddbac090e9bea0943bb5 (patch)
tree2b8961d346e6e9dbda16c41ae301bfce4a4c2b82 /zebra/zserv.h
parentzebra: Allow user to specify work-queue processing hold time (diff)
downloadfrr-a37ef435e9514a455931ddbac090e9bea0943bb5.tar.xz
frr-a37ef435e9514a455931ddbac090e9bea0943bb5.zip
zebra: Store packets to process in `struct zebra_t`
Store the number of packets we should process at one time in `struct zebra_t`. A future commit will allow the user to control this via a hidden cli. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/zserv.h')
-rw-r--r--zebra/zserv.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/zebra/zserv.h b/zebra/zserv.h
index d847526f2..279b56ec3 100644
--- a/zebra/zserv.h
+++ b/zebra/zserv.h
@@ -138,6 +138,9 @@ struct zebra_t {
/* LSP work queue */
struct work_queue *lsp_process_q;
+
+ #define ZEBRA_ZAPI_PACKETS_TO_PROCESS 10
+ u_int32_t packets_to_process;
};
extern struct zebra_t zebrad;
extern unsigned int multipath_num;