1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2017-2018 Intel Corporation
6 reason = 'only supported on Linux'
9 dpdk_conf.set10('RTE_LIBRTE_VHOST_NUMA', true)
11 if (toolchain == 'gcc' and cc.version().version_compare('>=8.3.0'))
12 cflags += '-DVHOST_GCC_UNROLL_PRAGMA'
13 elif (toolchain == 'clang' and cc.version().version_compare('>=3.7.0'))
14 cflags += '-DVHOST_CLANG_UNROLL_PRAGMA'
15 elif (toolchain == 'icc' and cc.version().version_compare('>=16.0.0'))
16 cflags += '-DVHOST_ICC_UNROLL_PRAGMA'
18 dpdk_conf.set('RTE_LIBRTE_VHOST_POSTCOPY', cc.has_header('linux/userfaultfd.h'))
19 cflags += '-fno-strict-aliasing'
37 deps += ['ethdev', 'cryptodev', 'hash', 'pci']