From 2d9bc09833a7e3a248bb99a2fecdf3b187aa7c09 Mon Sep 17 00:00:00 2001 From: Viet Nguyen <33080583+nguyenlienviet@users.noreply.github.com> Date: Mon, 23 Jun 2025 09:08:57 -0700 Subject: [PATCH] Fix flush time check in l2fwd-jobstats We should skip flushing only if `next_flush_time[portid]` is after `now`. --- examples/l2fwd-jobstats/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/l2fwd-jobstats/main.c b/examples/l2fwd-jobstats/main.c index 308b8edd202..18be47282c9 100644 --- a/examples/l2fwd-jobstats/main.c +++ b/examples/l2fwd-jobstats/main.c @@ -454,7 +454,7 @@ l2fwd_flush_job(__rte_unused struct rte_timer *timer, __rte_unused void *arg) for (i = 0; i < qconf->n_rx_port; i++) { portid = l2fwd_dst_ports[qconf->rx_port_list[i]]; - if (qconf->next_flush_time[portid] <= now) + if (qconf->next_flush_time[portid] > now) continue; buffer = tx_buffer[portid];