]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: some more i/o optimizations
authorQuentin Young <qlyoung@cumulusnetworks.com>
Wed, 25 Apr 2018 22:45:21 +0000 (18:45 -0400)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Tue, 29 May 2018 19:06:16 +0000 (19:06 +0000)
commit822167e70436b86bbd84bd825f3019b836daf802
tree127f2ca209687b1c40cbcb00be83de9d201f1ffa
parente1de21d760cedfffd33cfca301939ce1da0d5a26
zebra: some more i/o optimizations

* Separate flush task from write task, so we can continue adding to the
  write buffer while it's waiting to flush
* Handle write errors sooner rather than later
* Only schedule a process job if we have packets to process
* Tweak zserv_process_messages to not reschedule itself and rely on
  zserv_read() to do so in all proper cases

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
zebra/zserv.c
zebra/zserv.h