]> git.proxmox.com Git - mirror_frr.git/commit - zebra/dplane_fpm_nl.c
zebra: reduce atomic ops in fpm_nl_process()
authorDuncan Eastoe <duncan.eastoe@att.com>
Fri, 18 Dec 2020 14:21:18 +0000 (14:21 +0000)
committerDuncan Eastoe <duncan.eastoe@att.com>
Fri, 18 Dec 2020 15:36:38 +0000 (15:36 +0000)
commitbf2f7839455a7a820ca015c86b08fe276e888f14
treed4d41bb6429c3471cd93d63d61cb40c94ec43a13
parentdc693fe057ce2c42534aa9336bc50ed24a182877
zebra: reduce atomic ops in fpm_nl_process()

Maintain the peak ctxqueue length in a local variable, and perform
a single atomic update after processing all 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