[v2,6/7] build: make fragmentation library optional

Message ID 20230622150522.3228294-7-bruce.richardson@intel.com (mailing list archive)
State Superseded, archived
Delegated to: Thomas Monjalon
Headers
Series expand list of optional libraries |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Bruce Richardson June 22, 2023, 3:05 p.m. UTC
  This library is not essential for most DPDK uses, so mark it as optional
in the build config.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Morten Brørup <mb@smartsharesystems.com>
---
 app/test/meson.build | 6 ++++--
 lib/meson.build      | 1 +
 2 files changed, 5 insertions(+), 2 deletions(-)
  

Patch

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',