From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5A56E42D16; Wed, 21 Jun 2023 19:01:29 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DEC7942C4D; Wed, 21 Jun 2023 19:01:25 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id E201542B7E for ; Wed, 21 Jun 2023 19:01:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1687366883; 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: in-reply-to:in-reply-to:references:references; bh=Srvf6cEC2YBGBCsJxqOi7I+vT0wJ5AleJsTK1sUyzDU=; b=ZxpNotYVSbpTpQSQRkegm0xQIWxrZWmCEDX/4mlzLZo3kjwpYlwaxkd9pLM34mhKpq7SJq VKWxkR8at4yPIZF4MMKhGfB+pn0+0718Jo7Nd1RK585QlZMQmfVqA1xapkquf+XZqCXQcP 7NeZz1N02bLPlpmYKrUC52ILLDQULog= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-28-TZodYI-QOaSv4RCDIyRccA-1; Wed, 21 Jun 2023 13:01:18 -0400 X-MC-Unique: TZodYI-QOaSv4RCDIyRccA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 5ED1310311E6; Wed, 21 Jun 2023 17:01:11 +0000 (UTC) Received: from dmarchan.redhat.com (unknown [10.45.224.210]) by smtp.corp.redhat.com (Postfix) with ESMTP id 064D914682F8; Wed, 21 Jun 2023 17:01:09 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: thomas@monjalon.net, bluca@debian.org, tredaelli@redhat.com, i.maximets@ovn.org, james.r.harris@intel.com, mohammed@hawari.fr Subject: [PATCH v4 1/4] kni: move IOVA build check Date: Wed, 21 Jun 2023 19:00:55 +0200 Message-Id: <20230621170058.2740340-2-david.marchand@redhat.com> In-Reply-To: <20230621170058.2740340-1-david.marchand@redhat.com> References: <20211117112847.7362-6-david.marchand@redhat.com> <20230621170058.2740340-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org kni dependency to IOVA configuration does not need to be expressed in the top level lib/meson.build file. Signed-off-by: David Marchand --- lib/kni/meson.build | 5 +++++ lib/meson.build | 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/kni/meson.build b/lib/kni/meson.build index 8a71d8ba6f..5ce410f7f2 100644 --- a/lib/kni/meson.build +++ b/lib/kni/meson.build @@ -7,6 +7,11 @@ if is_windows subdir_done() endif +if dpdk_conf.get('RTE_IOVA_IN_MBUF') == 0 + build = false + reason = 'requires IOVA in mbuf (set enable_iova_as_pa option)' +endif + if not is_linux or not dpdk_conf.get('RTE_ARCH_64') build = false reason = 'only supported on 64-bit Linux' diff --git a/lib/meson.build b/lib/meson.build index 9677239236..f5c8a70a1d 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -95,9 +95,6 @@ dpdk_libs_deprecated += [ disabled_libs = [] opt_disabled_libs = run_command(list_dir_globs, get_option('disable_libs'), check: true).stdout().split() -if dpdk_conf.get('RTE_IOVA_IN_MBUF') == 0 - opt_disabled_libs += ['kni'] -endif foreach l:opt_disabled_libs if not optional_libs.contains(l) warning('Cannot disable mandatory library "@0@"'.format(l)) -- 2.40.1