bus/pci: fix VFIO mode
authorFerruh Yigit <ferruh.yigit@intel.com>
Mon, 30 Oct 2017 22:32:27 +0000 (22:32 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 31 Oct 2017 18:18:36 +0000 (19:18 +0100)
commitbc104bb853bddc048464e4d7b340cdedc3ad561f
tree22f4ebb23075a0aedd43a9aa36158a63fc19546b
parent8ced1542f7a356097c0b24bd1e08db670ff31b92
bus/pci: fix VFIO mode

Revert back to using VFIO_PRESENT as a marker to enable compilation
of VFIO-related segments.

VFIO_PRESENT is the combination of user configuration RTE_EAL_VFIO and
kernel version support check.

eal_vfio.h VFIO_PRESENT related check ordered to be compatible with
rte_vfio.h one, no functional modification.

Fixes: 279b581c897d ("vfio: expose functions")

Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Tested-by: Bruce Richardson <bruce.richardson@intel.com>
drivers/bus/pci/linux/pci_init.h
drivers/bus/pci/linux/pci_vfio.c
lib/librte_eal/common/include/rte_vfio.h
lib/librte_eal/linuxapp/eal/eal_interrupts.c
lib/librte_eal/linuxapp/eal/eal_vfio.h