Signed-off-by: Ciprian Barbu <[email protected]>
---
 lib/dpif-netdev.c | 8 ++++++++
 1 file changed, 8 insertions(+)

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;
-- 
1.8.3.2


_______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to