summaryrefslogtreecommitdiffstats
path: root/zebra/zserv.h
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2018-04-24 17:36:25 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-05-29 21:06:16 +0200
commit1572d9aff0bc024b2c9141166886a13487b5e183 (patch)
tree0c56e053226ea157a97cc53e30583d58b11b8706 /zebra/zserv.h
parentzebra: refactor zserv names, consolidate events (diff)
downloadfrr-1572d9aff0bc024b2c9141166886a13487b5e183.tar.xz
frr-1572d9aff0bc024b2c9141166886a13487b5e183.zip
zserv: optimize zserv_read
* Increase the maximum number of packets to read per read job * Store read packets in a local cached buffer to avoid mutex overhead * Only update last-read time / last-command if we actually read a packet * Add missing log line for corrupt header case Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'zebra/zserv.h')
-rw-r--r--zebra/zserv.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/zserv.h b/zebra/zserv.h
index 6cd8b8c29..a1b55bf8e 100644
--- a/zebra/zserv.h
+++ b/zebra/zserv.h
@@ -183,8 +183,8 @@ struct zebra_t {
/* LSP work queue */
struct work_queue *lsp_process_q;
-#define ZEBRA_ZAPI_PACKETS_TO_PROCESS 10
- uint32_t packets_to_process;
+#define ZEBRA_ZAPI_PACKETS_TO_PROCESS 100000
+ _Atomic uint32_t packets_to_process;
};
extern struct zebra_t zebrad;
extern unsigned int multipath_num;