pci: do not expose match function

This function is private to the PCI bus.

Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>
This commit is contained in:
Gaetan Rivet 2017-10-26 12:06:04 +02:00 committed by Thomas Monjalon
parent ea978e7c22
commit a80f004592
3 changed files with 15 additions and 17 deletions

View File

@ -290,6 +290,21 @@ 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);
/**
* Init tail queues for non-EAL library structures. This is to allow
* the rings, mempools, etc. lists to be shared among multiple processes

View File

@ -331,22 +331,6 @@ int rte_eal_compare_pci_addr(const struct rte_pci_addr *addr,
*/
int rte_pci_addr_parse(const char *str, struct rte_pci_addr *addr);
/*
* 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.

View File

@ -253,7 +253,6 @@ DPDK_17.11 {
rte_pci_addr_parse;
rte_pci_device_name;
rte_pci_get_iommu_class;
rte_pci_match;
vfio_enable;
vfio_is_enabled;
vfio_noiommu_is_enabled;