From: Duncan Eastoe Date: Fri, 11 Dec 2020 10:26:54 +0000 (+0000) Subject: dplane_fpm_nl: queue peak counter never increments X-Git-Tag: frr-7.5.1~21^2~2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=aa7e72bd3a2c69d05b01a7913a1ad0088f6f4c7e;p=mirror%2Ffrr.git dplane_fpm_nl: queue peak counter never increments The context queue length peak counter is always set to its current value, hence never increments. Signed-off-by: Duncan Eastoe (cherry picked from commit 7545bda0a4b0114c6d73552fdbdce016f58572c0) --- diff --git a/zebra/dplane_fpm_nl.c b/zebra/dplane_fpm_nl.c index 5bf47580a8..2936030324 100644 --- a/zebra/dplane_fpm_nl.c +++ b/zebra/dplane_fpm_nl.c @@ -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; }