summaryrefslogtreecommitdiff
path: root/lib/dpif.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dpif.c')
-rw-r--r--lib/dpif.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/dpif.c b/lib/dpif.c
index 374f013ab..57aa3c6c4 100644
--- a/lib/dpif.c
+++ b/lib/dpif.c
@@ -1440,17 +1440,17 @@ dpif_print_packet(struct dpif *dpif, struct dpif_upcall *upcall)
}
}
-/* If 'dpif' creates its own I/O polling threads, refreshes poll threads
- * configuration. */
+/* Pass custom configuration to the datapath implementation. Some of the
+ * changes can be postponed until dpif_run() is called. */
int
-dpif_poll_threads_set(struct dpif *dpif, const char *cmask)
+dpif_set_config(struct dpif *dpif, const struct smap *cfg)
{
int error = 0;
- if (dpif->dpif_class->poll_threads_set) {
- error = dpif->dpif_class->poll_threads_set(dpif, cmask);
+ if (dpif->dpif_class->set_config) {
+ error = dpif->dpif_class->set_config(dpif, cfg);
if (error) {
- log_operation(dpif, "poll_threads_set", error);
+ log_operation(dpif, "set_config", error);
}
}