diff mbox series

[ovs-dev,dpdk-latest,2/2] ci: Reduce optional libraries in DPDK.

Message ID 20231122121612.861939-2-david.marchand@redhat.com
State Accepted
Delegated to: Simon Horman
Headers show
Series [ovs-dev,dpdk-latest,1/2] ci: Cache DPDK installed libraries only. | expand

Checks

Context Check Description
ovsrobot/apply-robot success apply and check: success
ovsrobot/github-robot-_Build_and_Test success github build: passed
ovsrobot/intel-ovs-compilation success test: success

Commit Message

David Marchand Nov. 22, 2023, 12:16 p.m. UTC
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>
---
 .ci/dpdk-build.sh | 3 +++
 1 file changed, 3 insertions(+)

Comments

Simon Horman Nov. 23, 2023, 10:34 a.m. UTC | #1
On Wed, Nov 22, 2023 at 01:16:12PM +0100, David Marchand wrote:
> 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.

Nice resource reduction.

> Signed-off-by: David Marchand <david.marchand@redhat.com>

Reviewed-by: Simon Horman <horms@kernel.org>
diff mbox series

Patch

diff --git a/.ci/dpdk-build.sh b/.ci/dpdk-build.sh
index 8380c48637..698b9e1b14 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"