Commit f98f89a0 authored by Tom Gundersen's avatar Tom Gundersen Committed by David S. Miller

net: tunnels - enable module autoloading

Enable the module alias hookup to allow tunnel modules to be autoloaded on demand.

This is in line with how most other netdev kinds work, and will allow userspace
to create tunnels without having CAP_SYS_MODULE.
Signed-off-by: default avatarTom Gundersen <teg@jklm.no>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2a7ede54
...@@ -486,4 +486,5 @@ static void __exit ipip_fini(void) ...@@ -486,4 +486,5 @@ static void __exit ipip_fini(void)
module_init(ipip_init); module_init(ipip_init);
module_exit(ipip_fini); module_exit(ipip_fini);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_ALIAS_RTNL_LINK("ipip");
MODULE_ALIAS_NETDEV("tunl0"); MODULE_ALIAS_NETDEV("tunl0");
...@@ -61,6 +61,7 @@ ...@@ -61,6 +61,7 @@
MODULE_AUTHOR("Ville Nuorvala"); MODULE_AUTHOR("Ville Nuorvala");
MODULE_DESCRIPTION("IPv6 tunneling device"); MODULE_DESCRIPTION("IPv6 tunneling device");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_ALIAS_RTNL_LINK("ip6tnl");
MODULE_ALIAS_NETDEV("ip6tnl0"); MODULE_ALIAS_NETDEV("ip6tnl0");
#ifdef IP6_TNL_DEBUG #ifdef IP6_TNL_DEBUG
......
...@@ -1828,4 +1828,5 @@ static int __init sit_init(void) ...@@ -1828,4 +1828,5 @@ static int __init sit_init(void)
module_init(sit_init); module_init(sit_init);
module_exit(sit_cleanup); module_exit(sit_cleanup);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_ALIAS_RTNL_LINK("sit");
MODULE_ALIAS_NETDEV("sit0"); MODULE_ALIAS_NETDEV("sit0");
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment