]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
ipip: add module alias for tunl0 tunnel device
authorstephen hemminger <shemminger@vyatta.com>
Mon, 29 Nov 2010 09:47:49 +0000 (09:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Dec 2010 20:53:23 +0000 (12:53 -0800)
If ipip is built as a module the 'ip tunnel add' command would fail because
the ipip module was not being autoloaded.  Adding an alias for
the tunl0 device name cause dev_load() to autoload it when needed.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ipip.c

index e70ad581398e7f4424c9bf81dee6fcb1d6b4b62e..988f52fba54a172bc1c49a692393f121314ba444 100644 (file)
@@ -913,3 +913,4 @@ static void __exit ipip_fini(void)
 module_init(ipip_init);
 module_exit(ipip_fini);
 MODULE_LICENSE("GPL");
+MODULE_ALIAS("tunl0");