Use new VFIO IOVA mode API to query no-IOMMU status.
Signed-off-by: Anatoly Burakov <[email protected]>
---
drivers/net/ntnic/ntnic_ethdev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ntnic/ntnic_ethdev.c b/drivers/net/ntnic/ntnic_ethdev.c
index d79c4fc1d54..e0d84705f53 100644
--- a/drivers/net/ntnic/ntnic_ethdev.c
+++ b/drivers/net/ntnic/ntnic_ethdev.c
@@ -2729,7 +2729,7 @@ nthw_pci_probe(struct rte_pci_driver *pci_drv, struct
rte_pci_device *pci_dev)
(pci_dev->device.devargs->data ?
pci_dev->device.devargs->data : "NULL"));
}
- const int n_rte_vfio_no_io_mmu_enabled = dev_vfio_noiommu_is_enabled();
+ const int n_rte_vfio_no_io_mmu_enabled = dev_vfio_get_iova_mode() ==
DEV_VFIO_IOVA_MODE_PA;
NT_LOG(DBG, NTNIC, "vfio_no_iommu_enabled=%d",
n_rte_vfio_no_io_mmu_enabled);
if (n_rte_vfio_no_io_mmu_enabled) {
--
2.52.0