From: Cong Wang Date: Mon, 27 May 2013 22:35:53 +0000 (+0000) Subject: vxlan: defer vxlan init as late as possible X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7332a13b038be05cf44fcf0cacfdd8aade77b16f;p=linux-beck.git vxlan: defer vxlan init as late as possible When vxlan is compiled as builtin, its init code runs before IPv6 init, this could cause problems if we create IPv6 socket in the latter patch. Cc: Stephen Hemminger Cc: David S. Miller Signed-off-by: Cong Wang Signed-off-by: David S. Miller --- diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c index 6fc962042046..8111565c35fc 100644 --- a/drivers/net/vxlan.c +++ b/drivers/net/vxlan.c @@ -1771,7 +1771,7 @@ out2: out1: return rc; } -module_init(vxlan_init_module); +late_initcall(vxlan_init_module); static void __exit vxlan_cleanup_module(void) {