From patchwork Thu Jun 27 08:16:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ales Musil X-Patchwork-Id: 1953024 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=Ff6hE1Yl; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=2605:bc80:3010::136; helo=smtp3.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=patchwork.ozlabs.org) Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4W8rxf204Kz20X6 for ; Thu, 27 Jun 2024 18:16:22 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 3DAF260D94; Thu, 27 Jun 2024 08:16:20 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id KSIOcK-gzIrU; Thu, 27 Jun 2024 08:16:19 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=2605:bc80:3010:104::8cd3:938; helo=lists.linuxfoundation.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 038E6606D5 Authentication-Results: smtp3.osuosl.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=Ff6hE1Yl Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp3.osuosl.org (Postfix) with ESMTPS id 038E6606D5; Thu, 27 Jun 2024 08:16:19 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id D46B8C002B; Thu, 27 Jun 2024 08:16:18 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) by lists.linuxfoundation.org (Postfix) with ESMTP id 5D30CC002A for ; Thu, 27 Jun 2024 08:16:17 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 32C93404E0 for ; Thu, 27 Jun 2024 08:16:17 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id yxaTPP3KUCOZ for ; Thu, 27 Jun 2024 08:16:15 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=170.10.133.124; helo=us-smtp-delivery-124.mimecast.com; envelope-from=amusil@redhat.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp2.osuosl.org 98D47400A4 Authentication-Results: smtp2.osuosl.org; dmarc=pass (p=none dis=none) header.from=redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 98D47400A4 Authentication-Results: smtp2.osuosl.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=Ff6hE1Yl Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by smtp2.osuosl.org (Postfix) with ESMTPS id 98D47400A4 for ; Thu, 27 Jun 2024 08:16:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1719476174; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1UPKqnOsLmxliP4iqbT88yNV9PkJ01Jyz0OO6RWVefM=; b=Ff6hE1Ylc1Xxdm2ARIvVWaTKz6sSLx9RCStOA7y3g7mFM22uET3tzinspGfeAVcxP467VK 3vH59B8n+tWBm+gGulnkCe9jTPfJtqBnkb8kgHp3n+MPmAz85z54C+wZ9nQcrjhDg3mo0w 3pGLwg5J9hHMSNENSths5QKP9CeL0S4= Received: from mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-402-639Y-udtPR-ht5EicbVaNQ-1; Thu, 27 Jun 2024 04:16:12 -0400 X-MC-Unique: 639Y-udtPR-ht5EicbVaNQ-1 Received: from mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.40]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 81E22195608F for ; Thu, 27 Jun 2024 08:16:11 +0000 (UTC) Received: from amusil.brq.redhat.com (unknown [10.43.17.32]) by mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id D2537195606B; Thu, 27 Jun 2024 08:16:09 +0000 (UTC) From: Ales Musil To: dev@openvswitch.org Date: Thu, 27 Jun 2024 10:16:08 +0200 Message-ID: <20240627081608.715440-1-amusil@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.40 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Subject: [ovs-dev] [PATCH ovn] ci: Save some compilation for DPDK and skip error on ARM. X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Marchand , dceara@redhat.com Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" Add more options that will shave some compilation time of DPDK by removing unused parts of the code. Also add skip for memory error produced by DPDK on ARM with 2MB hugepages which isn't harmful [0]. [0] http://mails.dpdk.org/archives/dev/2024-June/296764.html Suggested-by: David Marchand Signed-off-by: Ales Musil --- tests/system-dpdk-macros.at | 3 ++- utilities/containers/prepare.sh | 10 ++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/tests/system-dpdk-macros.at b/tests/system-dpdk-macros.at index 440908af7..39d19f366 100644 --- a/tests/system-dpdk-macros.at +++ b/tests/system-dpdk-macros.at @@ -77,7 +77,8 @@ $1";/EAL: No \(available\|free\) .*hugepages reported/d /netdev_linux.*obtaining netdev stats via vport failed/d /qdisc_create_multiq(): Could not add multiq qdisc (2): No such file or directory/d /tap_mp_req_on_rxtx(): Failed to send start req to secondary/d -/tap_nl_dump_ext_ack(): Specified qdisc kind is unknown/d"]) +/tap_nl_dump_ext_ack(): Specified qdisc kind is unknown/d +/EAL: eal_memalloc_alloc_seg_bulk(): couldn't find suitable memseg_list/d"]) AT_CHECK([:; $2]) ]) diff --git a/utilities/containers/prepare.sh b/utilities/containers/prepare.sh index 460d34a72..49bb2ac91 100755 --- a/utilities/containers/prepare.sh +++ b/utilities/containers/prepare.sh @@ -54,9 +54,9 @@ function build_dpdk() pushd dpdk-src fi - # Switching to 'default' machine to make the dpdk cache usable on + # Switching to 'generic' platform to make the dpdk cache usable on # different CPUs. We can't be sure that all CI machines are exactly same. - DPDK_OPTS="$DPDK_OPTS -Dmachine=default" + DPDK_OPTS="$DPDK_OPTS -Dplatform=generic" # Disable building DPDK unit tests. Not needed for OVS build or tests. DPDK_OPTS="$DPDK_OPTS -Dtests=false" @@ -67,7 +67,9 @@ function build_dpdk() # OVS compilation and the "ovn-system-dpdk" unit tests (run in the CI) # only depend on virtio/tap drivers. - # We can disable all remaining drivers to save compilation time. + # We can disable all applications and remaining drivers to save + # compilation time. + DPDK_OPTS="$DPDK_OPTS -Ddisable_apps=*" DPDK_OPTS="$DPDK_OPTS -Denable_drivers=net/null,net/tap,net/virtio" # OVS depends on the vhost library (and its dependencies). # net/tap depends on the gso library. @@ -76,7 +78,7 @@ function build_dpdk() # Install DPDK using prefix. DPDK_OPTS="$DPDK_OPTS --prefix=$DPDK_INSTALL_DIR" - meson $DPDK_OPTS build + meson setup $DPDK_OPTS build ninja -C build ninja -C build install popd