]> git.proxmox.com Git - mirror_frr.git/commit - zebra/dplane_fpm_nl.c
zebra: local var in fpm_process_queue() sched cond
authorDuncan Eastoe <duncan.eastoe@att.com>
Fri, 18 Dec 2020 14:29:36 +0000 (14:29 +0000)
committerDuncan Eastoe <duncan.eastoe@att.com>
Fri, 18 Dec 2020 15:36:39 +0000 (15:36 +0000)
commit3f2b998f6100945521d2c89fd286b75e13e24977
tree0fbc703d2ca23c141490c33d0edf3f604adbd513
parentbf2f7839455a7a820ca015c86b08fe276e888f14
zebra: local var in fpm_process_queue() sched cond

Don't use an atomic operation to determine whether fpm_process_queue()
needs to be re-scheduled. Instead we can simply use a local variable
to determine if we stopped processing because we ran out of buffers.

In the case where we would have re-scheduled due to new context objects
in the queue (enqueued after we stopped processing), fpm_nl_process()
will schedule us (or will have done already).

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