From 3c698076eeb2b3f4b8f5c4800a936f01ee9d812f Mon Sep 17 00:00:00 2001 From: Simon Sundberg Date: Wed, 25 May 2022 16:40:28 +0200 Subject: [PATCH] pping: Add missing debug timeout count The debug counter for timed out (deleted by periodical cleanup) flow states was never incremented, so fix that. Signed-off-by: Simon Sundberg --- pping/pping_kern.c | 1 + 1 file changed, 1 insertion(+) diff --git a/pping/pping_kern.c b/pping/pping_kern.c index 37fdee3..0f55681 100644 --- a/pping/pping_kern.c +++ b/pping/pping_kern.c @@ -1117,6 +1117,7 @@ int flowmap_cleanup(struct bpf_iter__bpf_map_elem *ctx) notify1 = should_notify_closing(f_state1) && timeout1; notify2 = should_notify_closing(f_state2) && timeout2; if (bpf_map_delete_elem(&flow_state, &flow1) == 0) { + debug_increment_timeoutdel(PPING_MAP_FLOWSTATE); if (notify1) send_flow_timeout_message(ctx, &flow1, now); if (notify2)