[dpdk-dev] [PATCH 2/3] bus/pci: expose sysfs parsing API
Burakov, Anatoly
anatoly.burakov at intel.com
Wed Mar 14 12:19:31 CET 2018
On 09-Mar-18 11:08 PM, Xiao Wang wrote:
> Some existing sysfs parsing functions are helpful for the later vDPA
> driver, this patch make them global and expose them to shared lib.
>
> Signed-off-by: Xiao Wang <xiao.w.wang at intel.com>
> ---
> drivers/bus/pci/linux/pci.c | 9 ++++-----
> drivers/bus/pci/linux/pci_init.h | 8 ++++++++
> drivers/bus/pci/rte_bus_pci_version.map | 8 ++++++++
> 3 files changed, 20 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/bus/pci/linux/pci.c b/drivers/bus/pci/linux/pci.c
> index abde64119..81e5e5650 100644
> --- a/drivers/bus/pci/linux/pci.c
> +++ b/drivers/bus/pci/linux/pci.c
> @@ -32,7 +32,7 @@
>
> extern struct rte_pci_bus rte_pci_bus;
>
> -static int
> +int
> pci_get_kernel_driver_by_path(const char *filename, char *dri_name)
Here and in other places - shouldn't this too be prefixed with rte_?
--
Thanks,
Anatoly
More information about the dev
mailing list