aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland Dreier <roland@topspin.com>2005-04-18 16:12:20 +0000
committerRoland Dreier <rolandd@cisco.com>2006-11-09 11:35:56 -0800
commitf4a499286a5842eb69dc865f5bca1b6f03a28fd3 (patch)
tree1eb228808977e9f1a1cff1abeb19c045cc6e859a
parent91fc39561d04903cd5b1665d9215a184baa66ba9 (diff)
downloadlibibverbs-f4a499286a5842eb69dc865f5bca1b6f03a28fd3.tar.gz
Load driver statically linked into executable
Signed-off-by: Roland Dreier <roland@topspin.com>
-rw-r--r--src/init.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/init.c b/src/init.c
index 87f9557..fed536f 100644
--- a/src/init.c
+++ b/src/init.c
@@ -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);