Răsfoiți Sursa

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>
Cong Wang 12 ani în urmă
părinte
comite
7332a13b03
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      drivers/net/vxlan.c

+ 1 - 1
drivers/net/vxlan.c

@@ -1771,7 +1771,7 @@ out2:
 out1:
 out1:
 	return rc;
 	return rc;
 }
 }
-module_init(vxlan_init_module);
+late_initcall(vxlan_init_module);
 
 
 static void __exit vxlan_cleanup_module(void)
 static void __exit vxlan_cleanup_module(void)
 {
 {