From da6d63bd3a17e681c6f62c74ffe09abe74595c1e Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Mon, 14 Mar 2022 21:28:19 +0100 Subject: lib: Expose flow control metrics to RIB This exposes some additional metrics relating to FRCT / Flow control: the number of duplicate packets received, number of packets received out of the flow control window and / or reordering queue, and the number of rendez-vous messages sent. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/lib/timerwheel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/timerwheel.c') diff --git a/src/lib/timerwheel.c b/src/lib/timerwheel.c index 661cc456..eb25758b 100644 --- a/src/lib/timerwheel.c +++ b/src/lib/timerwheel.c @@ -211,9 +211,9 @@ static void timerwheel_move(void) if (r->frcti->probe && (r->frcti->rttseq == r->seqno)) r->frcti->probe = false; - +#ifdef PROC_FLOW_STATS r->frcti->n_rtx++; - +#endif pthread_rwlock_unlock(&r->frcti->lock); if (ts_to_ns(now) - act > (rto << 2)) -- cgit v1.2.3