ofproto: Initialize tunnel module earlier.
authorJarno Rajahalme <jrajahalme@nicira.com>
Wed, 4 Feb 2015 20:59:04 +0000 (12:59 -0800)
committerJarno Rajahalme <jrajahalme@nicira.com>
Thu, 5 Feb 2015 00:24:17 +0000 (16:24 -0800)
commit4d9226a7463a5cf2af313bb709f48f6fca4d4ffd
tree37da113730a361438d6ba9e45ee87e7e5026c3fa
parentb9aa727c9df6bf0834d04e433d38a771556f61af
ofproto: Initialize tunnel module earlier.

The tunnel module can get called by the handler threads right after
they are started, so we need to call ofproto_tunnel_init() before
opening the backer.

Late initialization caused a spurious ovs-vswitchd handler thread
crash on start-up due to the tunnel module fat_rwlock not being
initialized yet.

Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto-dpif.c