examples/vhost: fix ioat dependency
authorCheng Jiang <cheng1.jiang@intel.com>
Thu, 12 Nov 2020 15:49:02 +0000 (15:49 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 13 Nov 2020 18:43:26 +0000 (19:43 +0100)
commit6e9a9d2a02ae790772fa11768793223ba546fce6
tree8a34f53e565ff4a64eef70997e75bcf623618b56
parent653b5994e86205f5db03b88ffa1ae339cd26905a
examples/vhost: fix ioat dependency

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>
examples/vhost/Makefile
examples/vhost/ioat.c
examples/vhost/ioat.h
examples/vhost/main.c
examples/vhost/meson.build