]> git.proxmox.com Git - mirror_frr.git/commit - zebra/zserv.h
zserv: optimize zserv_read
authorQuentin Young <qlyoung@cumulusnetworks.com>
Tue, 24 Apr 2018 15:36:25 +0000 (11:36 -0400)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Tue, 29 May 2018 19:06:16 +0000 (19:06 +0000)
commit1572d9aff0bc024b2c9141166886a13487b5e183
tree0c56e053226ea157a97cc53e30583d58b11b8706
parent21ccc0cf24f80b7b75815dba3da308f6bae70492
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>
zebra/zserv.c
zebra/zserv.h