patch 'dts: resolve variance in performance reporting' has been queued to stable release 25.11.3

Kevin Traynor ktraynor at redhat.com
Thu Jul 30 11:17:14 CEST 2026


Hi,

FYI, your patch has been queued to stable release 25.11.3

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 08/04/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/kevintraynor/dpdk-stable

This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable/commit/e24e3624318bfaed31722dbcc3cc086798622a58

Thanks.

Kevin

---
>From e24e3624318bfaed31722dbcc3cc086798622a58 Mon Sep 17 00:00:00 2001
From: Andrew Bailey <abailey at iol.unh.edu>
Date: Fri, 17 Jul 2026 10:49:33 -0400
Subject: [PATCH] dts: resolve variance in performance reporting

[ upstream commit 1fdcbea124bbd5b7de69ea02473e6626c1aee0d3 ]

Currently, the single core forward performance test suite reports
variable results with a standard deviation of ~10Mpps. Currently,
traffic is measured over 30 seconds a single time and the stats are
reported from this metric. This commit reduces the time traffic is sent
to only 5 seconds but runs numerous times to take an average and limit
variance to a standard deviation of ~1Mpps.

Bugzilla ID: 1969
Fixes: d77d7f04f24c ("dts: add single-core performance test suite")

Signed-off-by: Andrew Bailey <abailey at iol.unh.edu>
---
 .../TestSuite_single_core_forward_perf.py     | 20 +++++++++++--------
 1 file changed, 12 insertions(+), 8 deletions(-)

diff --git a/dts/tests/TestSuite_single_core_forward_perf.py b/dts/tests/TestSuite_single_core_forward_perf.py
index 1e7ab7b036..fe094eb4ab 100644
--- a/dts/tests/TestSuite_single_core_forward_perf.py
+++ b/dts/tests/TestSuite_single_core_forward_perf.py
@@ -54,5 +54,5 @@ class TestSingleCoreForwardPerf(TestSuite):
         self.delta_tolerance = self.config.delta_tolerance
 
-    def _transmit(self, testpmd: TestPmd, frame_size: int) -> float:
+    def _transmit(self, testpmd: TestPmd, frame_size: int, repetitions: int = 1) -> float:
         """Create a testpmd session with every rule in the given list, verify jump behavior.
 
@@ -60,8 +60,10 @@ class TestSingleCoreForwardPerf(TestSuite):
             testpmd: The testpmd shell to use for forwarding packets.
             frame_size: The size of the frame to transmit.
+            repetitions: The number of times to rerun the transmission.
 
         Returns:
             The MPPS (millions of packets per second) forwarded by the SUT.
         """
+        assert repetitions > 0, "Invalid number of repetitions given."
         # Build packet with dummy values, and account for the 14B and 20B Ether and IP headers
         packet = (
@@ -72,11 +74,11 @@ class TestSingleCoreForwardPerf(TestSuite):
 
         testpmd.start()
+        rx_avg = 0.0
 
-        # Transmit for 30 seconds.
-        stats = assess_performance_by_packet(packet=packet, duration=30)
-
-        rx_mpps = stats.rx_pps / 1_000_000
-
-        return rx_mpps
+        for _ in range(repetitions):
+            # Transmit for 5 seconds.
+            stats = assess_performance_by_packet(packet=packet, duration=5)
+            rx_avg += stats.rx_pps
+        return rx_avg / (repetitions * 1_000_000)
 
     def _produce_stats_table(self, test_parameters: list[dict[str, int | float]]) -> None:
@@ -132,5 +134,7 @@ class TestSingleCoreForwardPerf(TestSuite):
                 **driver_specific_testpmd_args,
             ) as testpmd:
-                params["measured_mpps"] = round(self._transmit(testpmd, frame_size), 3)
+                params["measured_mpps"] = round(
+                    self._transmit(testpmd, frame_size, repetitions=5), 3
+                )
                 params["performance_delta"] = round(
                     (float(params["measured_mpps"]) - float(params["expected_mpps"]))
-- 
2.55.0

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-07-30 10:16:04.151996721 +0100
+++ 0095-dts-resolve-variance-in-performance-reporting.patch	2026-07-30 10:16:01.513709808 +0100
@@ -1 +1 @@
-From 1fdcbea124bbd5b7de69ea02473e6626c1aee0d3 Mon Sep 17 00:00:00 2001
+From e24e3624318bfaed31722dbcc3cc086798622a58 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 1fdcbea124bbd5b7de69ea02473e6626c1aee0d3 ]
+
@@ -15 +16,0 @@
-Cc: stable at dpdk.org
@@ -23 +24 @@
-index acdf8ae2f6..57aecdf7a4 100644
+index 1e7ab7b036..fe094eb4ab 100644



More information about the stable mailing list