diff options
author | Ciprian Barbu <ciprian.barbu@linaro.org> | 2015-02-03 19:11:34 +0000 |
---|---|---|
committer | Zoltan Kiss <zoltan.kiss@linaro.org> | 2015-09-01 18:19:53 +0100 |
commit | 3d67d9fd2081b0f4fac6110d89a897e5a717a98e (patch) | |
tree | d9b7cfdd2935f741d5e4eb02675dff849a8c4bab | |
parent | 4261aff3090f11e0e5214a07595b94d47b1b1fcf (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 f841876f4..647b9d61f 100644 --- a/lib/dpif-netdev.c +++ b/lib/dpif-netdev.c @@ -68,6 +68,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); @@ -2653,6 +2656,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; |