summaryrefslogtreecommitdiff
path: root/drivers/net/vxlan.c
diff options
context:
space:
mode:
authorCong Wang <amwang@redhat.com>2013-05-28 02:35:53 +0400
committerDavid S. Miller <davem@davemloft.net>2013-05-29 10:53:52 +0400
commit7332a13b038be05cf44fcf0cacfdd8aade77b16f (patch)
tree5584ca8159ad298a5b35b5ba6617a1be1bea43ec /drivers/net/vxlan.c
parent31fec5aa21d166cf81702a669c1398784b513b8a (diff)
downloadlinux-7332a13b038be05cf44fcf0cacfdd8aade77b16f.tar.xz
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 <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>
Diffstat (limited to 'drivers/net/vxlan.c')
-rw-r--r--drivers/net/vxlan.c2
1 files changed, 1 insertions, 1 deletions
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)
{