diff --git a/config/meson.build b/config/meson.build index 275f00b60d..0b710b7959 100644 --- a/config/meson.build +++ b/config/meson.build @@ -103,3 +103,6 @@ dpdk_conf.set('RTE_COMPILE_TIME_CPUFLAGS', ','.join(compile_time_cpuflags)) dpdk_conf.set_quoted('RTE_EAL_PMD_PATH', eal_pmd_path) install_headers('rte_config.h', subdir: get_option('include_subdir_arch')) + +# enable VFIO only if it is linux OS +dpdk_conf.set('RTE_EAL_VFIO', host_machine.system() == 'linux') diff --git a/config/rte_config.h b/config/rte_config.h index 333fb0be95..d3732e9533 100644 --- a/config/rte_config.h +++ b/config/rte_config.h @@ -35,7 +35,6 @@ #define RTE_MAX_TAILQ 32 #define RTE_LOG_DP_LEVEL RTE_LOG_INFO #define RTE_BACKTRACE 1 -#define RTE_EAL_VFIO 1 #define RTE_MAX_VFIO_CONTAINERS 64 /* bsd module defines */