diff options
author | Damjan Marion <damarion@cisco.com> | 2018-10-22 13:38:57 +0200 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2018-10-22 16:10:26 +0000 |
commit | 2322798bea16ff4092e2361423af6fd451fd1669 (patch) | |
tree | beec5b680365a31c40bb9ff8ea656e8323aca734 /src/vlib/linux/vfio.h | |
parent | a26373bda8aa66cebf03ac092c20fdf4b0a0f625 (diff) |
vlib: pci improvements
- logging
- pass vlib_main_t to all APIs
- open vfio container only when needed
Change-Id: I897e53e0af3f91c3a99f0c827401d1c0ec2e478a
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vlib/linux/vfio.h')
-rw-r--r-- | src/vlib/linux/vfio.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/vlib/linux/vfio.h b/src/vlib/linux/vfio.h index 7fe3ef8dc0e..aae8e3c6ee7 100644 --- a/src/vlib/linux/vfio.h +++ b/src/vlib/linux/vfio.h @@ -25,9 +25,6 @@ typedef struct typedef struct { - u32 flags; -#define LINUX_VFIO_F_HAVE_IOMMU (1 << 0) -#define LINUX_VFIO_F_HAVE_NOIOMMU (1 << 1) int container_fd; /* VFIO */ @@ -48,7 +45,7 @@ extern linux_vfio_main_t vfio_main; clib_error_t *linux_vfio_init (vlib_main_t * vm); void linux_vfio_dma_map_regions (vlib_main_t * vm); clib_error_t *linux_vfio_group_get_device_fd (vlib_pci_addr_t * addr, - int *fd); + int *fd, int *is_noiommu); #endif /* included_vlib_linux_vfio_h */ |