[PATCH v11 17/20] net/hinic3: use the new VFIO mode API
Anatoly Burakov <[email protected]>
| Newsgroups | org.dpdk.dev |
|---|---|
| Message-ID | <c7c61c709648ecbea74e131fa4544993468ce68d.1786113800.git.anatoly.burakov@intel.com> |
Use new VFIO mode API to query no-IOMMU status. Signed-off-by: Anatoly Burakov <[email protected]> --- drivers/net/hinic3/base/hinic3_hwdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/hinic3/base/hinic3_hwdev.c b/drivers/net/hinic3/base/hinic3_hwdev.c index d09a8f7e7d..224be6f81c 100644 --- a/drivers/net/hinic3/base/hinic3_hwdev.c +++ b/drivers/net/hinic3/base/hinic3_hwdev.c @@ -78,7 +78,8 @@ hinic3_is_vfio_iommu_enable(const struct rte_eth_dev *eth_dev) { struct rte_pci_device *pci_dev = RTE_CLASS_TO_BUS_DEVICE(eth_dev, *pci_dev); - return pci_dev->kdrv == RTE_PCI_KDRV_VFIO && rte_vfio_noiommu_is_enabled() != 1; + return pci_dev->kdrv == RTE_PCI_KDRV_VFIO && + rte_vfio_get_mode() != RTE_VFIO_MODE_NOIOMMU; } int -- 2.52.0