patch 'test/memcpy: reduce alignment offset coverage' has been queued to stable release 25.11.1
Kevin Traynor
ktraynor at redhat.com
Thu Mar 19 11:03:31 CET 2026
Hi,
FYI, your patch has been queued to stable release 25.11.1
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/23/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/f92202fb88fe5016a268d793293051e510f47d6d
Thanks.
Kevin
---
>From f92202fb88fe5016a268d793293051e510f47d6d Mon Sep 17 00:00:00 2001
From: Stephen Hemminger <stephen at networkplumber.org>
Date: Thu, 26 Feb 2026 08:48:43 -0800
Subject: [PATCH] test/memcpy: reduce alignment offset coverage
[ upstream commit bc15681021d5588072f0635ccb9937d127c64b3d ]
The memcpy test sweeps all 32x32 src/dst alignment offset pairs which
causes it to timeout on slow emulated 32-bit build environments [1].
Replace with a curated set of 7 offsets {0, 1, 7, 15, 16, 17, 31}
that cover the interesting alignment boundaries. This reduces the
iterations from 38912 to 1862 while covering the same code paths.
[1] https://build.opensuse.org/package/live_build_log/home:bluca:dpdk/dpdk/Debian_Testing/i586
Reported-by: Luca Boccassi <bluca at debian.org>
Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
---
app/test/test_memcpy.c | 20 ++++++++++++++++----
1 file changed, 16 insertions(+), 4 deletions(-)
diff --git a/app/test/test_memcpy.c b/app/test/test_memcpy.c
index 802dc4631b..a5423b0004 100644
--- a/app/test/test_memcpy.c
+++ b/app/test/test_memcpy.c
@@ -37,4 +37,14 @@ static size_t buf_sizes[TEST_VALUE_RANGE];
#define ALIGNMENT_UNIT 32
+/*
+ * Subset of offsets to test. These values cover the structurally
+ * interesting alignment cases for SSE/AVX copy paths:
+ * aligned (0), off-by-one (1), partial vector (7, 15, 17),
+ * vector boundaries (16, 31). Testing all 1024 src x dst
+ * combinations of offsets 0..31 is unnecessary since many
+ * map to the same code paths, and causes the test to timeout
+ * on slow (e.g. emulated 32-bit) build environments.
+ */
+static const unsigned int test_offsets[] = {0, 1, 7, 15, 16, 17, 31};
/*
@@ -104,11 +114,13 @@ func_test(void)
{
unsigned int off_src, off_dst, i;
+ unsigned int n_offsets = RTE_DIM(test_offsets);
int ret;
- for (off_src = 0; off_src < ALIGNMENT_UNIT; off_src++) {
- for (off_dst = 0; off_dst < ALIGNMENT_UNIT; off_dst++) {
+ for (off_src = 0; off_src < n_offsets; off_src++) {
+ for (off_dst = 0; off_dst < n_offsets; off_dst++) {
for (i = 0; i < RTE_DIM(buf_sizes); i++) {
- ret = test_single_memcpy(off_src, off_dst,
- buf_sizes[i]);
+ ret = test_single_memcpy(test_offsets[off_src],
+ test_offsets[off_dst],
+ buf_sizes[i]);
if (ret != 0)
return -1;
--
2.53.0
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-03-19 10:01:09.724590555 +0000
+++ 0093-test-memcpy-reduce-alignment-offset-coverage.patch 2026-03-19 10:01:07.141906050 +0000
@@ -1 +1 @@
-From bc15681021d5588072f0635ccb9937d127c64b3d Mon Sep 17 00:00:00 2001
+From f92202fb88fe5016a268d793293051e510f47d6d Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit bc15681021d5588072f0635ccb9937d127c64b3d ]
+
@@ -22 +24 @@
-index 7273c17a06..9bd7f60edd 100644
+index 802dc4631b..a5423b0004 100644
More information about the stable
mailing list