[dpdk-dev,v3,02/11] eal/pci: export match function
Checks
Commit Message
Export rte_pci_match() function as it needed in the followup patch.
Signed-off-by: Santosh Shukla <santosh.shukla@caviumnetworks.com>
---
lib/librte_eal/bsdapp/eal/rte_eal_version.map | 1 +
lib/librte_eal/common/eal_common_pci.c | 10 +---------
lib/librte_eal/common/include/rte_pci.h | 15 +++++++++++++++
lib/librte_eal/linuxapp/eal/rte_eal_version.map | 1 +
4 files changed, 18 insertions(+), 9 deletions(-)
Comments
On 07/11/2017 08:16 AM, Santosh Shukla wrote:
> Export rte_pci_match() function as it needed in the followup patch.
>
> Signed-off-by: Santosh Shukla<santosh.shukla@caviumnetworks.com>
> ---
> lib/librte_eal/bsdapp/eal/rte_eal_version.map | 1 +
> lib/librte_eal/common/eal_common_pci.c | 10 +---------
> lib/librte_eal/common/include/rte_pci.h | 15 +++++++++++++++
> lib/librte_eal/linuxapp/eal/rte_eal_version.map | 1 +
> 4 files changed, 18 insertions(+), 9 deletions(-)
>
> diff --git a/lib/librte_eal/bsdapp/eal/rte_eal_version.map b/lib/librte_eal/bsdapp/eal/rte_eal_version.map
> index 381f895cd..8d43df0bb 100644
> --- a/lib/librte_eal/bsdapp/eal/rte_eal_version.map
> +++ b/lib/librte_eal/bsdapp/eal/rte_eal_version.map
> @@ -200,6 +200,7 @@ DPDK_17.08 {
> rte_bus_find;
> rte_bus_find_by_device;
> rte_bus_find_by_name;
> + rte_pci_match;
>
> } DPDK_17.05;
>
Shouldn't be DPDK_17.08?
Maxime
On 07/11/2017 11:11 AM, Maxime Coquelin wrote:
>
>
> On 07/11/2017 08:16 AM, Santosh Shukla wrote:
>> Export rte_pci_match() function as it needed in the followup patch.
>>
>> Signed-off-by: Santosh Shukla<santosh.shukla@caviumnetworks.com>
>> ---
>> lib/librte_eal/bsdapp/eal/rte_eal_version.map | 1 +
>> lib/librte_eal/common/eal_common_pci.c | 10 +---------
>> lib/librte_eal/common/include/rte_pci.h | 15 +++++++++++++++
>> lib/librte_eal/linuxapp/eal/rte_eal_version.map | 1 +
>> 4 files changed, 18 insertions(+), 9 deletions(-)
>>
>> diff --git a/lib/librte_eal/bsdapp/eal/rte_eal_version.map
>> b/lib/librte_eal/bsdapp/eal/rte_eal_version.map
>> index 381f895cd..8d43df0bb 100644
>> --- a/lib/librte_eal/bsdapp/eal/rte_eal_version.map
>> +++ b/lib/librte_eal/bsdapp/eal/rte_eal_version.map
>> @@ -200,6 +200,7 @@ DPDK_17.08 {
>> rte_bus_find;
>> rte_bus_find_by_device;
>> rte_bus_find_by_name;
>> + rte_pci_match;
>> } DPDK_17.05;
>
> Shouldn't be DPDK_17.08?
Nevermind, I misread. It looks good to me.
Acked-by: Maxime Coquelin <maxime.coquelin@redhat.com>
> Maxime
@@ -200,6 +200,7 @@ DPDK_17.08 {
rte_bus_find;
rte_bus_find_by_device;
rte_bus_find_by_name;
+ rte_pci_match;
} DPDK_17.05;
@@ -128,16 +128,8 @@ pci_unmap_resource(void *requested_addr, size_t size)
/*
* 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
*/
-static int
+int
rte_pci_match(const struct rte_pci_driver *pci_drv,
const struct rte_pci_device *pci_dev)
{
@@ -368,6 +368,21 @@ int rte_pci_scan(void);
int
rte_pci_probe(void);
+/*
+ * 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);
+
/**
* Map the PCI device resources in user space virtual memory address
*
@@ -205,6 +205,7 @@ DPDK_17.08 {
rte_bus_find;
rte_bus_find_by_device;
rte_bus_find_by_name;
+ rte_pci_match;
} DPDK_17.05;