]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/bsdapp/eal/eal_pci.c
pci: get IOMMU class
[dpdk.git] / lib / librte_eal / bsdapp / eal / eal_pci.c
index 04eacdcc75c0b4f51cb94da6c4a56ae7aaf017f3..1595988bdd282c22436a5938dac6ff3b8c8ff76f 100644 (file)
@@ -403,6 +403,16 @@ error:
        return -1;
 }
 
+/*
+ * Get iommu class of PCI devices on the bus.
+ */
+enum rte_iova_mode
+rte_pci_get_iommu_class(void)
+{
+       /* Supports only RTE_KDRV_NIC_UIO */
+       return RTE_IOVA_PA;
+}
+
 int
 pci_update_device(const struct rte_pci_addr *addr)
 {