Message ID | 1461104928-33500-13-git-send-email-diproiettod@vmware.com |
---|---|
State | Superseded |
Headers | show |
diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index 747482c..2aa12b7 100644 --- a/ofproto/ofproto-dpif.c +++ b/ofproto/ofproto-dpif.c @@ -534,6 +534,8 @@ type_run(const char *type) return 0; } + /* This must be called before dpif_run() */ + dpif_poll_threads_set(backer->dpif, pmd_cpu_mask); if (dpif_run(backer->dpif)) { backer->need_revalidate = REV_RECONFIGURE; @@ -562,8 +564,6 @@ type_run(const char *type) udpif_set_threads(backer->udpif, n_handlers, n_revalidators); } - dpif_poll_threads_set(backer->dpif, pmd_cpu_mask); - if (backer->need_revalidate) { struct ofproto_dpif *ofproto; struct simap_node *node;