Skip to content

Commit

Permalink
fixup! WIP: plugable dpif.
Browse files Browse the repository at this point in the history
  • Loading branch information
roidayan committed Aug 18, 2024
1 parent 7ce2795 commit 2155bca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/dpif-plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ any_plugin_get(const char *prefix, const char *str)
}

snprintf(buf, sizeof(buf), "%s-%s.so", prefix, str);
dlh = dlopen(buf, RTLD_NOW);
dlh = dlopen(buf, RTLD_LAZY);
if (!dlh) {
/* look in current binary, only open once */
dlh = BODY;
Expand All @@ -54,6 +54,7 @@ any_plugin_get(const char *prefix, const char *str)
}
}
VLOG_INFO("Loaded plugin '%s-%s'", prefix, str);
dlerror(); /* Clear any existing error */

snprintf(buf, sizeof(buf), "%s_%s_plugin", prefix, str);
p = dlsym(dlh, buf);
Expand Down

0 comments on commit 2155bca

Please sign in to comment.