summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCong Wang <amwang@redhat.com>2013-05-27 22:35:53 (GMT)
committerDavid S. Miller <davem@davemloft.net>2013-05-29 06:53:52 (GMT)
commit7332a13b038be05cf44fcf0cacfdd8aade77b16f (patch)
tree5584ca8159ad298a5b35b5ba6617a1be1bea43ec
parent31fec5aa21d166cf81702a669c1398784b513b8a (diff)
downloadlinux-fsl-qoriq-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>
-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 6fc9620..8111565 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)
{