From: Hemant Agrawal Date: Tue, 7 Nov 2017 12:15:07 +0000 (+0530) Subject: bus/dpaa: set IOVA mode as physical X-Git-Tag: spdx-start~919 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=d5a4e3a00c4a;p=dpdk.git bus/dpaa: set IOVA mode as physical Signed-off-by: Hemant Agrawal --- diff --git a/drivers/bus/dpaa/dpaa_bus.c b/drivers/bus/dpaa/dpaa_bus.c index dc58e17410..1cc8c89397 100644 --- a/drivers/bus/dpaa/dpaa_bus.c +++ b/drivers/bus/dpaa/dpaa_bus.c @@ -484,11 +484,21 @@ rte_dpaa_find_device(const struct rte_device *start, rte_dev_cmp_t cmp, return NULL; } +/* + * Get iommu class of DPAA2 devices on the bus. + */ +static enum rte_iova_mode +rte_dpaa_get_iommu_class(void) +{ + return RTE_IOVA_PA; +} + struct rte_dpaa_bus rte_dpaa_bus = { .bus = { .scan = rte_dpaa_bus_scan, .probe = rte_dpaa_bus_probe, .find_device = rte_dpaa_find_device, + .get_iommu_class = rte_dpaa_get_iommu_class, }, .device_list = TAILQ_HEAD_INITIALIZER(rte_dpaa_bus.device_list), .driver_list = TAILQ_HEAD_INITIALIZER(rte_dpaa_bus.driver_list),