]> git.proxmox.com Git - mirror_frr.git/commit - zebra/dplane_fpm_nl.c
zebra: reduce atomic ops in fpm_process_queue()
authorDuncan Eastoe <duncan.eastoe@att.com>
Fri, 18 Dec 2020 14:35:21 +0000 (14:35 +0000)
committerDuncan Eastoe <duncan.eastoe@att.com>
Fri, 18 Dec 2020 15:37:13 +0000 (15:37 +0000)
commit438dd3e7df9f393a3b66ffffa389f93b0592cd2d
treedc8b5295472a61c0d5b4d32633a81b587dbaf13a
parent3f2b998f6100945521d2c89fd286b75e13e24977
zebra: reduce atomic ops in fpm_process_queue()

Maintain the count of contexts which have been processed in a local
variable, and perform a single atomic update after we have consumed
all queued contexts.

Generally this results in at least one less atomic operation per
context.

Signed-off-by: Duncan Eastoe <duncan.eastoe@att.com>
zebra/dplane_fpm_nl.c