It made more sense to me to load a static driver once before calling
find_drivers() for each entry in our driver path.  Is there anything
wrong with this?

 - R.

--- libibverbs/src/init.c       (revision 2156)
+++ libibverbs/src/init.c       (working copy)
@@ -198,6 +198,11 @@ static void INIT ibverbs_init(void)
        if (ibv_init_mem_map())
                return;
 
+       /*
+        * Check if a driver is statically linked, and if so load it first.
+        */
+       load_driver(NULL);
+
        user_path = getenv(OPENIB_DRIVER_PATH_ENV);
        if (user_path) {
                wr_path = strdupa(user_path);
_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to