summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrevor Woerner <trevor.woerner@amd.com>2025-02-25 16:56:18 -0500
committerMark Hatle <mark.hatle@amd.com>2025-03-30 14:16:15 -0600
commit84f71448d98e89b14c8dd0d06028eb9c599044ae (patch)
treee64acb0994707615164bba2eb219a8456bae45d2
parent0789a1b6f8899d409784a8721d7751b41c039be0 (diff)
downloadmeta-xilinx-84f71448d98e89b14c8dd0d06028eb9c599044ae.tar.gz
iperf3: backport upstream patch
The team working on the XXV + EOE implementation (25G PL Ethernet using SFP+) observed a bug in iperf3 which causes a roughly 50% drop in the bitrate (from 9.57Gbps down to 5.35Gbps). On scarthgap iperf3 is at version 3.16; this bug is fixed in version 3.18. Instead of bumping the entire code base to 3.18 it would be safer to simply apply the fix for this bug onto 3.16 instead. Link: https://github.com/esnet/iperf/pull/1708/commits/ac6b9f7fd335ddebc5212eed40083ef4cd3cb86d Signed-off-by: Trevor Woerner <trevor.woerner@amd.com> Signed-off-by: Mark Hatle <mark.hatle@amd.com>
-rw-r--r--meta-xilinx-standalone-sdt/conf/layer.conf2
-rw-r--r--meta-xilinx-standalone-sdt/dynamic-layers/meta-oe/recipes-benchmark/iperf3/iperf3/do-not-listen-to-old-udp-prot-listener.patch21
-rw-r--r--meta-xilinx-standalone-sdt/dynamic-layers/meta-oe/recipes-benchmark/iperf3/iperf3_%.bbappend2
3 files changed, 25 insertions, 0 deletions
diff --git a/meta-xilinx-standalone-sdt/conf/layer.conf b/meta-xilinx-standalone-sdt/conf/layer.conf
index 81e75110..10eb6385 100644
--- a/meta-xilinx-standalone-sdt/conf/layer.conf
+++ b/meta-xilinx-standalone-sdt/conf/layer.conf
@@ -15,6 +15,8 @@ BBFILE_PRIORITY_xilinx-standalone-sdt = "7"
15BBFILES_DYNAMIC += " \ 15BBFILES_DYNAMIC += " \
16openamp-layer:${LAYERDIR}/dynamic-layers/openamp-layer/recipes-*/*/*.bb \ 16openamp-layer:${LAYERDIR}/dynamic-layers/openamp-layer/recipes-*/*/*.bb \
17openamp-layer:${LAYERDIR}/dynamic-layers/openamp-layer/recipes-*/*/*.bbappend \ 17openamp-layer:${LAYERDIR}/dynamic-layers/openamp-layer/recipes-*/*/*.bbappend \
18openembedded-layer:${LAYERDIR}/dynamic-layers/meta-oe/recipes-*/*/*.bb \
19openembedded-layer:${LAYERDIR}/dynamic-layers/meta-oe/recipes-*/*/*.bbappend \
18" 20"
19 21
20# Allow other layers to find the root of this layer if necessary 22# Allow other layers to find the root of this layer if necessary
diff --git a/meta-xilinx-standalone-sdt/dynamic-layers/meta-oe/recipes-benchmark/iperf3/iperf3/do-not-listen-to-old-udp-prot-listener.patch b/meta-xilinx-standalone-sdt/dynamic-layers/meta-oe/recipes-benchmark/iperf3/iperf3/do-not-listen-to-old-udp-prot-listener.patch
new file mode 100644
index 00000000..579ed326
--- /dev/null
+++ b/meta-xilinx-standalone-sdt/dynamic-layers/meta-oe/recipes-benchmark/iperf3/iperf3/do-not-listen-to-old-udp-prot-listener.patch
@@ -0,0 +1,21 @@
1From ac6b9f7fd335ddebc5212eed40083ef4cd3cb86d Mon Sep 17 00:00:00 2001
2From: David Bar-On <david.cdb004@gmail.com>
3Date: Sun, 2 Jun 2024 11:52:03 +0300
4Subject: [PATCH] Do not listen to old pro_listener
5
6---
7 src/iperf_udp.c | 1 +
8 1 file changed, 1 insertion(+)
9
10diff --git a/src/iperf_udp.c b/src/iperf_udp.c
11index a603236df..40f2b1ca7 100644
12--- a/src/iperf_udp.c
13+++ b/src/iperf_udp.c
14@@ -446,6 +446,7 @@ iperf_udp_accept(struct iperf_test *test)
15 /*
16 * Create a new "listening" socket to replace the one we were using before.
17 */
18+ FD_CLR(test->prot_listener, &test->read_set); // No control messages from old listener
19 test->prot_listener = netannounce(test->settings->domain, Pudp, test->bind_address, test->bind_dev, test->server_port);
20 if (test->prot_listener < 0) {
21 i_errno = IESTREAMLISTEN;
diff --git a/meta-xilinx-standalone-sdt/dynamic-layers/meta-oe/recipes-benchmark/iperf3/iperf3_%.bbappend b/meta-xilinx-standalone-sdt/dynamic-layers/meta-oe/recipes-benchmark/iperf3/iperf3_%.bbappend
new file mode 100644
index 00000000..8422870a
--- /dev/null
+++ b/meta-xilinx-standalone-sdt/dynamic-layers/meta-oe/recipes-benchmark/iperf3/iperf3_%.bbappend
@@ -0,0 +1,2 @@
1FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
2SRC_URI += "file://do-not-listen-to-old-udp-prot-listener.patch"