[dpdk-dev,v5,17/20] bus/pci: do not expose PCI match function
Checks
Commit Message
This function is private to the PCI bus.
Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>
---
drivers/bus/pci/include/rte_bus_pci.h | 16 ----------------
drivers/bus/pci/private.h | 15 +++++++++++++++
lib/librte_eal/bsdapp/eal/rte_eal_version.map | 1 -
lib/librte_eal/linuxapp/eal/rte_eal_version.map | 1 -
4 files changed, 15 insertions(+), 18 deletions(-)
@@ -170,22 +170,6 @@ struct rte_pci_bus {
/** Device driver supports IOVA as VA */
#define RTE_PCI_DRV_IOVA_AS_VA 0X0040
-/*
- * Match the PCI Driver and Device using the ID Table
- *
- * @param pci_drv
- * PCI driver from which ID table would be extracted
- * @param pci_dev
- * PCI device to match against the driver
- * @return
- * 1 for successful match
- * 0 for unsuccessful match
- */
-int
-rte_pci_match(const struct rte_pci_driver *pci_drv,
- const struct rte_pci_device *pci_dev);
-
-
/**
* Get iommu class of PCI devices on the bus.
* And return their preferred iova mapping mode.
@@ -220,4 +220,19 @@ void pci_uio_free_resource(struct rte_pci_device *dev,
int pci_uio_map_resource_by_index(struct rte_pci_device *dev, int res_idx,
struct mapped_pci_resource *uio_res, int map_idx);
+/*
+ * Match the PCI Driver and Device using the ID Table
+ *
+ * @param pci_drv
+ * PCI driver from which ID table would be extracted
+ * @param pci_dev
+ * PCI device to match against the driver
+ * @return
+ * 1 for successful match
+ * 0 for unsuccessful match
+ */
+int
+rte_pci_match(const struct rte_pci_driver *pci_drv,
+ const struct rte_pci_device *pci_dev);
+
#endif /* _PCI_PRIVATE_H_ */
@@ -229,6 +229,5 @@ DPDK_17.11 {
rte_eal_mbuf_default_mempool_ops;
rte_lcore_has_role;
rte_pci_get_iommu_class;
- rte_pci_match;
} DPDK_17.08;
@@ -233,6 +233,5 @@ DPDK_17.11 {
rte_eal_mbuf_default_mempool_ops;
rte_lcore_has_role;
rte_pci_get_iommu_class;
- rte_pci_match;
} DPDK_17.08;