From patchwork Fri Jun 23 15:07:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 128969 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6F4F342D31; Fri, 23 Jun 2023 17:08:15 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 82CFD42D40; Fri, 23 Jun 2023 17:07:45 +0200 (CEST) Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 2ED89427F5 for ; Fri, 23 Jun 2023 17:07:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687532860; x=1719068860; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=xS/cWiPocu2zyqFnwwAnGYAlKygt5yPDFaKAeUOkX5I=; b=MQhhgJPWpEoMX631r4A5oW1Y1Fvmt5NpUTsvawnDrDYwD4MB2qwIDczP mkrL8r3Txb3CfWvTf3GVGOuEc4uZ4D85kJ33O3RoT73EHViMkM/ZEZT7S VpIgm+9RMU7b6wkEnayudEeTYdNi4v0kDI5PbT63ZFD2XFwUkvtW+SluH EH4QTagcQN8JFwwTB3qFtNAAtZ1wq7nKtAqDsInt+sxCJGWPZMKk8/Irb Yx0wZ4TMR9GsxbzO7zLIehGIqi8QUFJkhQJnta3G1SNvw/gU3L8pOZWta VzmP/i4nkJUmPoSu8fPwLlUl7n9VDmU8ykztzAeS1bBp6OeWhJLfyxqRK Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10750"; a="424467967" X-IronPort-AV: E=Sophos;i="6.01,152,1684825200"; d="scan'208";a="424467967" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2023 08:07:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10750"; a="692697294" X-IronPort-AV: E=Sophos;i="6.01,152,1684825200"; d="scan'208";a="692697294" Received: from silpixa00401385.ir.intel.com ([10.237.214.14]) by orsmga006.jf.intel.com with ESMTP; 23 Jun 2023 08:07:27 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson , =?utf-8?q?Morten_Br=C3=B8?= =?utf-8?q?rup?= Subject: [PATCH v4 6/9] build: make efd library optional Date: Fri, 23 Jun 2023 16:07:05 +0100 Message-Id: <20230623150708.2203918-7-bruce.richardson@intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230623150708.2203918-1-bruce.richardson@intel.com> References: <20230622134840.3225975-1-bruce.richardson@intel.com> <20230623150708.2203918-1-bruce.richardson@intel.com> MIME-Version: 1.0 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 This library is not essential for most DPDK uses, so mark it as optional in the build config. Signed-off-by: Bruce Richardson Acked-by: Morten Brørup --- app/test/meson.build | 8 ++++---- lib/meson.build | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/test/meson.build b/app/test/meson.build index 0ef0bf690f..9331603331 100644 --- a/app/test/meson.build +++ b/app/test/meson.build @@ -42,8 +42,6 @@ test_sources = files( 'test_distributor_perf.c', 'test_eal_flags.c', 'test_eal_fs.c', - 'test_efd.c', - 'test_efd_perf.c', 'test_errno.c', 'test_ethdev_link.c', 'test_external_mem.c', @@ -257,9 +255,7 @@ perf_test_names = [ 'barrier_autotest', 'hash_multiwriter_autotest', 'timer_racecond_autotest', - 'efd_autotest', 'hash_functions_autotest', - 'efd_perf_autotest', 'lpm6_perf_autotest', 'rib6_slow_autotest', 'fib6_slow_autotest', @@ -368,6 +364,10 @@ if dpdk_conf.has('RTE_LIB_FLOW_CLASSIFY') test_sources += 'test_flow_classify.c' fast_tests += [['flow_classify_autotest', false, true]] endif +if dpdk_conf.has('RTE_LIB_EFD') + test_sources += ['test_efd.c', 'test_efd_perf.c'] + perf_test_names += ['efd_autotest', 'efd_perf_autotest'] +endif if dpdk_conf.has('RTE_LIB_GRAPH') test_sources += 'test_graph.c' fast_tests += [['graph_autotest', true, true]] diff --git a/lib/meson.build b/lib/meson.build index 47c18ca3b0..07cfdef614 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -74,6 +74,7 @@ optional_libs = [ 'cfgfile', 'compressdev', 'dmadev', + 'efd', 'eventdev', 'flow_classify', 'gpudev',