patch 'examples/l2fwd-jobstats: fix stats availability' has been queued to stable release 24.11.5
luca.boccassi at gmail.com
luca.boccassi at gmail.com
Thu Mar 19 23:02:59 CET 2026
Hi,
FYI, your patch has been queued to stable release 24.11.5
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 03/21/26. So please
shout if anyone has objections.
Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.
Queued patches are on a temporary branch at:
https://github.com/bluca/dpdk-stable
This queued commit can be viewed at:
https://github.com/bluca/dpdk-stable/commit/971b9ae6ce6d9d6d80ac4c4bdb821573bfb66d68
Thanks.
Luca Boccassi
---
>From 971b9ae6ce6d9d6d80ac4c4bdb821573bfb66d68 Mon Sep 17 00:00:00 2001
From: Rakesh Kudurumalla <rkudurumalla at marvell.com>
Date: Mon, 2 Mar 2026 11:48:05 +0530
Subject: [PATCH] examples/l2fwd-jobstats: fix stats availability
[ upstream commit 169180b961239c09087543330945a5aa8850ae57 ]
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")
Signed-off-by: Rakesh Kudurumalla <rkudurumalla at marvell.com>
---
examples/l2fwd-jobstats/main.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/examples/l2fwd-jobstats/main.c b/examples/l2fwd-jobstats/main.c
index 308b8edd20..8afa16163a 100644
--- a/examples/l2fwd-jobstats/main.c
+++ b/examples/l2fwd-jobstats/main.c
@@ -542,7 +542,9 @@ l2fwd_main_loop(void)
} while (likely(stats_read_pending == 0));
rte_spinlock_unlock(&qconf->lock);
- rte_pause();
+ while (rte_atomic_load_explicit(&qconf->stats_read_pending,
+ rte_memory_order_relaxed) != 0)
+ rte_pause();
}
/* >8 End of minimize impact of stats reading. */
}
--
2.47.3
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-03-19 22:00:50.177286447 +0000
+++ 0067-examples-l2fwd-jobstats-fix-stats-availability.patch 2026-03-19 22:00:47.822359366 +0000
@@ -1 +1 @@
-From 169180b961239c09087543330945a5aa8850ae57 Mon Sep 17 00:00:00 2001
+From 971b9ae6ce6d9d6d80ac4c4bdb821573bfb66d68 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 169180b961239c09087543330945a5aa8850ae57 ]
+
@@ -18 +19,0 @@
-Cc: stable at dpdk.org
@@ -26 +27 @@
-index a7cd5b4840..036bd4f951 100644
+index 308b8edd20..8afa16163a 100644
@@ -29 +30 @@
-@@ -541,7 +541,9 @@ l2fwd_main_loop(void)
+@@ -542,7 +542,9 @@ l2fwd_main_loop(void)
More information about the stable
mailing list