]> git.puffer.fish Git - mirror/frr.git/commitdiff
dplane_fpm_nl: queue peak counter never increments
authorDuncan Eastoe <duncan.eastoe@att.com>
Fri, 11 Dec 2020 10:26:54 +0000 (10:26 +0000)
committerDuncan Eastoe <duncan.eastoe@att.com>
Mon, 14 Dec 2020 14:52:18 +0000 (14:52 +0000)
The context queue length peak counter is always set to its current
value, hence never increments.

Signed-off-by: Duncan Eastoe <duncan.eastoe@att.com>
(cherry picked from commit 7545bda0a4b0114c6d73552fdbdce016f58572c0)

zebra/dplane_fpm_nl.c

index 5bf47580a852c60bb16963b6e02a5e1d36369215..2936030324d06e51f3c894fd7bc734e05544ef09 100644 (file)
@@ -1355,7 +1355,7 @@ static int fpm_nl_process(struct zebra_dplane_provider *prov)
                        if (peak_queue < cur_queue)
                                atomic_store_explicit(
                                        &fnc->counters.ctxqueue_len_peak,
-                                       peak_queue, memory_order_relaxed);
+                                       cur_queue, memory_order_relaxed);
                        continue;
                }