Skip to content

Commit 03d9ef5

Browse files
david-marchandkevintraynor
authored andcommitted
system-dpdk: Fix socket conflict when starting testpmd.
The DPDK telemetry library tries to connect to existing socket files so that it knows whether it can take over them. As was reported by Christian, following a fix in DPDK that got backported in v23.11.1, vhost-user unit tests that have both OVS and testpmd running at the same time reveal a conflict over the telemetry socket. This conflict shows up as an error message in OVS logs which makes those tests fail in the CI: 2024-06-06T13:03:38.351Z|00001|dpdk|ERR|TELEMETRY: Socket write base info to client failed The EAL file-prefix option affects both the directory where DPDK stores running files (like the telemetry socket) and how files backing hugepages are named (when in non --in-memory mode). Configure (again) this prefix so that testpmd runs in a dedicated directory. Reported-at: https://mail.openvswitch.org/pipermail/ovs-dev/2024-June/414545.html Fixes: c488f28 ("system-dpdk: Don't require hugetlbfs.") Signed-off-by: David Marchand <[email protected]>
1 parent 66f74cd commit 03d9ef5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/system-dpdk-macros.at

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ m4_define([OVS_DPDK_CHECK_TESTPMD],
102102
m4_define([OVS_DPDK_START_TESTPMD],
103103
[AT_CHECK([lscpu], [], [stdout])
104104
AT_CHECK([cat stdout | grep "NUMA node(s)" | awk '{c=1; while (c++<$(3)) {printf "512,"}; print "512"}' > NUMA_NODE])
105-
eal_options="$DPDK_EAL_OPTIONS --in-memory --socket-mem="$(cat NUMA_NODE)" --single-file-segments --no-pci"
105+
eal_options="$DPDK_EAL_OPTIONS --in-memory --socket-mem="$(cat NUMA_NODE)" --single-file-segments --no-pci --file-prefix testpmd"
106106
options="$1"
107107
test "$options" != "${options%% -- *}" || options="$options -- "
108108
eal_options="$eal_options ${options%% -- *}"

0 commit comments

Comments
 (0)