Patchwork [net-next,v6,1/5] vxlan: defer vxlan init as late as possible

login
register
mail settings
Submitter Amerigo Wang
Date April 24, 2013, 5:54 a.m.
Message ID <1366782874-18700-2-git-send-email-amwang@redhat.com>
Download mbox | patch
Permalink /patch/239042/
State Changes Requested
Delegated to: David Miller
Headers show

Comments

Amerigo Wang - April 24, 2013, 5:54 a.m.
From: Cong Wang <amwang@redhat.com>

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>
---
 drivers/net/vxlan.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c
index a7fd9a0..a0ca469 100644
--- a/drivers/net/vxlan.c
+++ b/drivers/net/vxlan.c
@@ -1651,7 +1651,7 @@  out2:
 out1:
 	return rc;
 }
-module_init(vxlan_init_module);
+late_initcall(vxlan_init_module);
 
 static void __exit vxlan_cleanup_module(void)
 {