diff mbox

[3/5] netdev-odp: fix pmd threads reinitializing

Message ID 1421942949-12189-4-git-send-email-ciprian.barbu@linaro.org
State New
Headers show

Commit Message

Ciprian Barbu Jan. 22, 2015, 4:09 p.m. UTC
Signed-off-by: Ciprian Barbu <ciprian.barbu@linaro.org>
---
 lib/dpif-netdev.c | 8 ++++++++
 1 file changed, 8 insertions(+)
diff mbox

Patch

diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c
index a0e508c..9aa78ce 100644
--- a/lib/dpif-netdev.c
+++ b/lib/dpif-netdev.c
@@ -67,6 +67,9 @@ 
 #include "unixctl.h"
 #include "util.h"
 #include "openvswitch/vlog.h"
+#ifdef ODP_NETDEV
+#include "netdev-odp.h"
+#endif
 
 VLOG_DEFINE_THIS_MODULE(dpif_netdev);
 
@@ -2366,6 +2369,11 @@  reload:
     /* Signal here to make sure the pmd finishes
      * reloading the updated configuration. */
     dp_netdev_pmd_reload_done(pmd);
+#ifdef ODP_NETDEV
+    if (odp_init_local()) {
+        ovs_abort(-1, "ODP init local failed\n");
+    }
+#endif
 
     for (;;) {
         int i;