Skip to content

Commit

Permalink
ci: Reduce optional libraries in DPDK.
Browse files Browse the repository at this point in the history
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 <david.marchand@redhat.com>
Signed-off-by: Simon Horman <horms@ovn.org>
  • Loading branch information
david-marchand authored and Simon Horman committed Nov 24, 2023
1 parent 9c988b2 commit 0e7a784
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .ci/dpdk-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 0e7a784

Please sign in to comment.