Limited to x86_64 systems, as it fails to compile on any others and is
disabled in the examples makefile for non-x86_64 systems.
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
---
examples/meson.build | 3 ++-
.../l3fwd-thread/meson.build | 22 +++++++++++++++++++
examples/performance-thread/meson.build | 10 ---------
3 files changed, 24 insertions(+), 11 deletions(-)
create mode 100644 examples/performance-thread/l3fwd-thread/meson.build
delete mode 100644 examples/performance-thread/meson.build
@@ -30,7 +30,8 @@ all_examples = [
'multi_process/simple_mp',
'multi_process/symmetric_mp',
'ntb', 'packet_ordering',
- 'performance-thread', 'ptpclient',
+ 'performance-thread/l3fwd-thread',
+ 'ptpclient',
'qos_meter', 'qos_sched',
'rxtx_callbacks',
'server_node_efd', 'service_cores',
new file mode 100644
@@ -0,0 +1,22 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2019 Intel Corporation
+
+# meson file, for building this example as part of a main DPDK build.
+#
+# To build this example as a standalone application with an already-installed
+# DPDK instance, use 'make'
+
+build = dpdk_conf.has('RTE_ARCH_X86_64')
+deps += ['timer', 'lpm']
+
+sources += files('main.c',
+ '../common/lthread.c',
+ '../common/lthread_cond.c',
+ '../common/lthread_diag.c',
+ '../common/lthread_mutex.c',
+ '../common/lthread_sched.c',
+ '../common/lthread_tls.c',
+ '../common/arch/@0@/ctx.c'.format(arch_subdir))
+
+includes += include_directories('../common',
+ '../common/arch/@0@'.format(arch_subdir))
deleted file mode 100644
@@ -1,10 +0,0 @@
-# SPDX-License-Identifier: BSD-3-Clause
-# Copyright(c) 2018 Intel Corporation
-
-# meson file, for building this example as part of a main DPDK build.
-#
-# To build this example as a standalone application with an already-installed
-# DPDK instance, use 'make'
-
-# Example app currently unsupported by meson build
-build = false