Skip to content

Commit

Permalink
vxlan: defer vxlan init as late as possible
Browse files Browse the repository at this point in the history
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 <stephen@networkplumber.org>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <amwang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Cong Wang authored and David S. Miller committed May 29, 2013
1 parent 31fec5a commit 7332a13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/vxlan.c
Original file line number Diff line number Diff line change
Expand Up @@ -1771,7 +1771,7 @@ static int __init vxlan_init_module(void)
out1:
return rc;
}
module_init(vxlan_init_module);
late_initcall(vxlan_init_module);

static void __exit vxlan_cleanup_module(void)
{
Expand Down

0 comments on commit 7332a13

Please sign in to comment.