On Mon, 2 Mar 2026 11:48:05 +0530 rkudurumalla <[email protected]> wrote:
> From: Rakesh Kudurumalla <[email protected]> > > Race condition between jobstats and time metrics > for forwarding and flushing is maintained using spinlock. > Timer metrics are not displayed properly due to the > frequent unavailability of the lock. > > This patch fixes the issue by introducing a delay before > acquiring the lock in the loop. This delay allows for better > availability of the lock, ensuring that show_lcore_stats() can > periodically update the statistics even when forwarding > jobs are running. > > Fixes: 204896f8d66c ("examples/l2fwd-jobstats: add new example") > Cc: [email protected] > > Signed-off-by: Rakesh Kudurumalla <[email protected]> This does fix the problem, but this whole application seems like it is using an unusual architecture. The main loop per thread spends most of its time updating job stats and only periodically calls the actual rx/tx burst forwarding. That is upside down??

