Signed-off-by: Rosen Xu <rosen...@intel.com>
---
 lib/librte_eal/common/eal_common_bus.c | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/lib/librte_eal/common/eal_common_bus.c 
b/lib/librte_eal/common/eal_common_bus.c
index 3e022d5..74bfa15 100644
--- a/lib/librte_eal/common/eal_common_bus.c
+++ b/lib/librte_eal/common/eal_common_bus.c
@@ -70,15 +70,27 @@ struct rte_bus_list rte_bus_list =
 rte_bus_scan(void)
 {
        int ret;
-       struct rte_bus *bus = NULL;
+       struct rte_bus *bus = NULL, *ifpga_bus = NULL;
 
        TAILQ_FOREACH(bus, &rte_bus_list, next) {
+               if (!strcmp(bus->name, "ifpga")) {
+                       ifpga_bus = bus;
+                       continue;
+               }
+               
                ret = bus->scan();
                if (ret)
                        RTE_LOG(ERR, EAL, "Scan for (%s) bus failed.\n",
                                bus->name);
        }
 
+       if (ifpga_bus) {
+               ret = ifpga_bus->scan();
+               if (ret)
+                       RTE_LOG(ERR, EAL, "Scan for (%s) bus failed.\n",
+                               ifpga_bus->name);
+       }
+
        return 0;
 }
 
-- 
1.8.3.1

Reply via email to