dpdk-testpmd does not need hugetlbfs backing as we don't require multiprocess support in OVS unit tests. Plus, there is no need for explicitly reserving more memory than what testpmd would actually need at runtime.
Switch to --in-memory, use dynamic allocations and remove the then unneeded check on hugetlbfs presence. Signed-off-by: David Marchand <david.march...@redhat.com> Acked-by: Aaron Conole <acon...@redhat.com> Acked-by: Eelco Chaudron <echau...@redhat.com> --- tests/system-dpdk-macros.at | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tests/system-dpdk-macros.at b/tests/system-dpdk-macros.at index e1e91f2972..c149b9ce70 100644 --- a/tests/system-dpdk-macros.at +++ b/tests/system-dpdk-macros.at @@ -7,9 +7,6 @@ m4_define([OVS_DPDK_PRE_CHECK], [dnl Check Hugepages AT_CHECK([cat /proc/meminfo], [], [stdout]) AT_SKIP_IF([grep -E 'HugePages_Free: *0' stdout], [], [stdout]) - AT_CHECK([mount], [], [stdout]) - AT_CHECK([grep 'hugetlbfs' stdout], [], [stdout], []) - ]) @@ -95,9 +92,7 @@ m4_define([OVS_DPDK_CHECK_TESTPMD], # Start dpdk-testpmd in background. # m4_define([OVS_DPDK_START_TESTPMD], - [AT_CHECK([lscpu], [], [stdout]) - AT_CHECK([cat stdout | grep "NUMA node(s)" | awk '{c=1; while (c++<$(3)) {printf "512,"}; print "512"}' > NUMA_NODE]) - eal_options="--socket-mem="$(cat NUMA_NODE)" --file-prefix page0 --single-file-segments --no-pci" + [eal_options="--in-memory --single-file-segments --no-pci" options="$1" [ "$options" != "${options%% -- *}" ] || options="$options -- " eal_options="$eal_options ${options%% -- *}" -- 2.41.0 _______________________________________________ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev