[dpdk-dev] [PATCH v5 18/20] bus/pci: do not expose IOVA mode getter

Gaëtan Rivet gaetan.rivet at 6wind.com
Thu Oct 12 12:54:52 CEST 2017


On Thu, Oct 12, 2017 at 12:45:45PM +0200, Gaetan Rivet wrote:
> Signed-off-by: Gaetan Rivet <gaetan.rivet at 6wind.com>
> ---
>  drivers/bus/pci/private.h                       | 10 ++++++++++
>  lib/librte_eal/bsdapp/eal/rte_eal_version.map   |  1 -
>  lib/librte_eal/linuxapp/eal/rte_eal_version.map |  1 -
>  3 files changed, 10 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/bus/pci/private.h b/drivers/bus/pci/private.h
> index b91217b..2283f09 100644
> --- a/drivers/bus/pci/private.h
> +++ b/drivers/bus/pci/private.h
> @@ -235,4 +235,14 @@ 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.
> + *
> + * @return
> + *   - enum rte_iova_mode.
> + */
> +enum rte_iova_mode
> +rte_pci_get_iommu_class(void);
> +

Made a mistake here while rebasing.
The function declaration should be removed from

  drivers/bus/pci/include/rte_bus_pci.h

as well.

>  #endif /* _PCI_PRIVATE_H_ */
> diff --git a/lib/librte_eal/bsdapp/eal/rte_eal_version.map b/lib/librte_eal/bsdapp/eal/rte_eal_version.map
> index 1c18ca5..1d879a1 100644
> --- a/lib/librte_eal/bsdapp/eal/rte_eal_version.map
> +++ b/lib/librte_eal/bsdapp/eal/rte_eal_version.map
> @@ -228,6 +228,5 @@ DPDK_17.11 {
>  	rte_eal_iova_mode;
>  	rte_eal_mbuf_default_mempool_ops;
>  	rte_lcore_has_role;
> -	rte_pci_get_iommu_class;
>  
>  } DPDK_17.08;
> diff --git a/lib/librte_eal/linuxapp/eal/rte_eal_version.map b/lib/librte_eal/linuxapp/eal/rte_eal_version.map
> index 827bcd4..1334433 100644
> --- a/lib/librte_eal/linuxapp/eal/rte_eal_version.map
> +++ b/lib/librte_eal/linuxapp/eal/rte_eal_version.map
> @@ -232,6 +232,5 @@ DPDK_17.11 {
>  	rte_eal_iova_mode;
>  	rte_eal_mbuf_default_mempool_ops;
>  	rte_lcore_has_role;
> -	rte_pci_get_iommu_class;
>  
>  } DPDK_17.08;
> -- 
> 2.1.4
> 

-- 
Gaëtan Rivet
6WIND


More information about the dev mailing list