From 0e7a78472aa0e770685749e4d5ab50d15e458251 Mon Sep 17 00:00:00 2001 From: David Marchand Date: Wed, 22 Nov 2023 13:16:12 +0100 Subject: [PATCH] ci: Reduce optional libraries in DPDK. Since DPDK v23.11, it is possible to select more easily which optional library is enabled. OVS needs the vhost library (and its dependencies). The net/tap DPDK driver needs the gso library. Other optional library can be disabled. This reduces the cache entry for DPDK from ~7MB to ~4MB. Signed-off-by: David Marchand Signed-off-by: Simon Horman --- .ci/dpdk-build.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.ci/dpdk-build.sh b/.ci/dpdk-build.sh index 8380c48637c..698b9e1b14e 100755 --- a/.ci/dpdk-build.sh +++ b/.ci/dpdk-build.sh @@ -42,6 +42,9 @@ function build_dpdk() DPDK_OPTS="$DPDK_OPTS -Denable_apps=test-pmd" enable_drivers="net/null,net/af_xdp,net/tap,net/virtio" DPDK_OPTS="$DPDK_OPTS -Denable_drivers=$enable_drivers" + # OVS depends on the vhost library (and its dependencies). + # net/tap depends on the gso library. + DPDK_OPTS="$DPDK_OPTS -Denable_libs=cryptodev,dmadev,gso,vhost" # Install DPDK using prefix. DPDK_OPTS="$DPDK_OPTS --prefix=$DPDK_INSTALL_DIR"