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>
/* Zebra instance */
struct zebra_t zebrad = {
.rtm_table_default = 0,
+ .packets_to_process = ZEBRA_ZAPI_PACKETS_TO_PROCESS,
};
/* process id. */
uint8_t marker, version;
vrf_id_t vrf_id;
struct zebra_vrf *zvrf;
- int packets = 10;
+ int packets = zebrad.packets_to_process;
/* Get thread data. Reset reading thread because I'm running. */
sock = THREAD_FD(thread);
/* 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;