From patchwork Thu Jun 22 15:05:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 128937 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 A706C42D1C; Thu, 22 Jun 2023 17:06:29 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8F78F42D20; Thu, 22 Jun 2023 17:05:47 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 3C30E42D30 for ; Thu, 22 Jun 2023 17:05:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687446345; x=1718982345; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ysBem0Al1H64PBHU+ZHvHTEipvF7s/alBwhRs8JLHMg=; b=Fbu93xABatikJWhi+kdi+bYn6FguVDd2E4TA/NuLVY1lC5XLOPUcC46K y9kgKotnto49am80nYiNTdE6Lqsra7P2QTOjhQPQv+5CB3BmXZzQk84R7 0HxnpKcFTQE5197qvFGeRyC2vb+m8yMGHxXpvFIiWZpaoKasnAYpIba8K 74cbKct8vnJSRoTSwD4CDlzWwkMxkxPTOZm93tPFgk2FZYkzRcMbz0UYC WrFPpv31V3UQOfbu7BI4kTmCokm5AYucV1KhhqCziu+vtGNL8TfxflgjR t5C8aav6QwmTaDEdZJjPIDfy4CuzpTW/5/918+/h6TFNol6zs82LJvjnB g==; X-IronPort-AV: E=McAfee;i="6600,9927,10749"; a="340114341" X-IronPort-AV: E=Sophos;i="6.01,149,1684825200"; d="scan'208";a="340114341" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jun 2023 08:05:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10749"; a="665100790" X-IronPort-AV: E=Sophos;i="6.01,149,1684825200"; d="scan'208";a="665100790" Received: from silpixa00401385.ir.intel.com ([10.237.214.166]) by orsmga003.jf.intel.com with ESMTP; 22 Jun 2023 08:05:43 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson , =?utf-8?q?Morten_Br=C3=B8?= =?utf-8?q?rup?= Subject: [PATCH v2 6/7] build: make fragmentation library optional Date: Thu, 22 Jun 2023 16:05:21 +0100 Message-Id: <20230622150522.3228294-7-bruce.richardson@intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230622150522.3228294-1-bruce.richardson@intel.com> References: <20230622134840.3225975-1-bruce.richardson@intel.com> <20230622150522.3228294-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 | 6 ++++-- lib/meson.build | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/test/meson.build b/app/test/meson.build index 749e929945..e8dbbadd5e 100644 --- a/app/test/meson.build +++ b/app/test/meson.build @@ -58,7 +58,6 @@ test_sources = files( 'test_hash_perf.c', 'test_hash_readwrite_lf_perf.c', 'test_interrupts.c', - 'test_ipfrag.c', 'test_ipsec.c', 'test_ipsec_sad.c', 'test_ipsec_perf.c', @@ -175,7 +174,6 @@ fast_tests = [ ['func_reentrancy_autotest', false, true], ['hash_autotest', true, true], ['interrupt_autotest', true, true], - ['ipfrag_autotest', false, true], ['lcores_autotest', true, true], ['logs_autotest', true, true], ['lpm_autotest', true, true], @@ -371,6 +369,10 @@ 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_IP_FRAG') + test_sources += 'test_ipfrag.c' + fast_tests += [['ipfrag_autotest', false, true]] +endif if dpdk_conf.has('RTE_LIB_METRICS') test_sources += ['test_metrics.c'] fast_tests += [['metrics_autotest', true, true]] diff --git a/lib/meson.build b/lib/meson.build index ce147a0766..7fb0cf4c4e 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -82,6 +82,7 @@ optional_libs = [ 'gro', 'gso', 'kni', + 'ip_frag', 'jobstats', 'latencystats', 'member',