]> git.proxmox.com Git - mirror_frr.git/commit
zebra: optimize zserv_write
authorQuentin Young <qlyoung@cumulusnetworks.com>
Tue, 24 Apr 2018 18:51:26 +0000 (14:51 -0400)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Tue, 29 May 2018 19:06:16 +0000 (19:06 +0000)
commit370d8dad7992460ecbf312d9dd03ec2692aeb0bf
treefa0ac24f4dc32270320c1fc39c685bab667dc4cd
parent1572d9aff0bc024b2c9141166886a13487b5e183
zebra: optimize zserv_write

Dequeue all pending messages when writing and push them all into the
write buffer. This removes the necessity to self-schedule, avoiding a
mutex lock, and should also maximize throughput by not writing 1 packet
per job.

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