ipip: add module alias for tunl0 tunnel device
authorstephen hemminger <[email protected]>
Mon, 29 Nov 2010 09:47:49 +0000 (09:47 +0000)
committerDavid S. Miller <[email protected]>
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
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");