Patchwork [2/3] gre: add module alias for gre0 tunnel device

login
register
mail settings
Submitter stephen hemminger
Date Nov. 29, 2010, 7:47 p.m.
Message ID <20101129194805.762508688@vyatta.com>
Download mbox | patch
Permalink /patch/73487/
State Accepted
Delegated to: David Miller
Headers show

Comments

stephen hemminger - Nov. 29, 2010, 7:47 p.m.
If gre is built as a module the 'ip tunnel add' command would fail because
the ip_gre module was not being autoloaded.  Adding an alias for
the gre0 device name cause dev_load() to autoload it when needed.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>




--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

--- a/net/ipv4/ip_gre.c	2010-11-29 11:35:36.388589982 -0800
+++ b/net/ipv4/ip_gre.c	2010-11-29 11:35:46.675624021 -0800
@@ -1764,3 +1764,4 @@  module_exit(ipgre_fini);
 MODULE_LICENSE("GPL");
 MODULE_ALIAS_RTNL_LINK("gre");
 MODULE_ALIAS_RTNL_LINK("gretap");
+MODULE_ALIAS("gre0");