diff options
author | Ciprian Barbu <ciprian.barbu@linaro.org> | 2015-02-03 19:11:34 +0000 |
---|---|---|
committer | Zoltan Kiss <zoltan.kiss@linaro.org> | 2015-07-09 14:48:32 +0100 |
commit | 1b642f68a243e95f19cba87d7e10be90a630a82f (patch) | |
tree | b886f8dd860a22644bd53a7c0c0ba6972a481f30 | |
parent | a0fed2f3cd70c0bdaf10e94d1bd1adfafacc7363 (diff) |
netdev-odp: fix pmd threads reinitializing
Signed-off-by: Ciprian Barbu <ciprian.barbu@linaro.org>
-rw-r--r-- | lib/dpif-netdev.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index a0e508ce1..9aa78ce2a 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; |