From: Hemant Agrawal Date: Tue, 7 Nov 2017 12:15:06 +0000 (+0530) Subject: bus/fslmc: set IOVA mode as physical X-Git-Tag: spdx-start~918 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=6eaf4e7c337551fdbc3d5d22721ada5c2d4b8457;p=dpdk.git bus/fslmc: set IOVA mode as physical Setting the default iova mode as physical. Signed-off-by: Hemant Agrawal --- diff --git a/drivers/bus/fslmc/fslmc_bus.c b/drivers/bus/fslmc/fslmc_bus.c index 0a8229f766..480857e57c 100644 --- a/drivers/bus/fslmc/fslmc_bus.c +++ b/drivers/bus/fslmc/fslmc_bus.c @@ -346,11 +346,21 @@ rte_fslmc_driver_unregister(struct rte_dpaa2_driver *driver) driver->fslmc_bus = NULL; } +/* + * Get iommu class of DPAA2 devices on the bus. + */ +static enum rte_iova_mode +rte_dpaa2_get_iommu_class(void) +{ + return RTE_IOVA_PA; +} + struct rte_fslmc_bus rte_fslmc_bus = { .bus = { .scan = rte_fslmc_scan, .probe = rte_fslmc_probe, .find_device = rte_fslmc_find_device, + .get_iommu_class = rte_dpaa2_get_iommu_class, }, .device_list = TAILQ_HEAD_INITIALIZER(rte_fslmc_bus.device_list), .driver_list = TAILQ_HEAD_INITIALIZER(rte_fslmc_bus.driver_list),