summaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-05-15 23:21:30 +0200
committerDavid S. Miller <davem@davemloft.net>2014-05-21 15:46:52 -0400
commitf98f89a0104454f35a62d681683c844f6dbf4043 (patch)
tree6d7e79e7a64d1dee8acf15674736212f1a5fa059 /net/ipv4
parent2a7ede540785cac631a7e7334701a25e949853a8 (diff)
downloadlinux-f98f89a0104454f35a62d681683c844f6dbf4043.tar.gz
linux-f98f89a0104454f35a62d681683c844f6dbf4043.tar.bz2
linux-f98f89a0104454f35a62d681683c844f6dbf4043.zip
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: Tom Gundersen <teg@jklm.no> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r--net/ipv4/ipip.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv4/ipip.c b/net/ipv4/ipip.c
index 812b18351462..4bc508f0db90 100644
--- a/net/ipv4/ipip.c
+++ b/net/ipv4/ipip.c
@@ -486,4 +486,5 @@ static void __exit ipip_fini(void)
module_init(ipip_init);
module_exit(ipip_fini);
MODULE_LICENSE("GPL");
+MODULE_ALIAS_RTNL_LINK("ipip");
MODULE_ALIAS_NETDEV("tunl0");