Fix vhost-switch compiling issue when ioat dependency is missing. Change 'RTE_x86' check into 'RTE_RAW_IOAT' check in meson build file. Use 'RTE_RAW_IOAT' to control conditional compiling in source file. Clean some codes. Fixes: abec60e7115d ("examples/vhost: support vhost async data path") Fixes: 3a04ecb21420 ("examples/vhost: add async vhost args parsing") Reported-by: David Marchand <david.marchand@redhat.com> Signed-off-by: Cheng Jiang <cheng1.jiang@intel.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com> Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com> Tested-by: David Marchand <david.marchand@redhat.com>
24 lines
491 B
Meson
24 lines
491 B
Meson
# SPDX-License-Identifier: BSD-3-Clause
|
|
# Copyright(c) 2017 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'
|
|
|
|
if not is_linux
|
|
build = false
|
|
subdir_done()
|
|
endif
|
|
|
|
deps += 'vhost'
|
|
allow_experimental_apis = true
|
|
sources = files(
|
|
'main.c', 'virtio_net.c'
|
|
)
|
|
|
|
if dpdk_conf.has('RTE_RAW_IOAT')
|
|
deps += 'raw_ioat'
|
|
sources += files('ioat.c')
|
|
endif
|