diff options
author | stephen hemminger <shemminger@vyatta.com> | 2010-11-29 09:47:48 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-12-01 20:53:22 (GMT) |
commit | 4da6a738ffdb99b88efbe5b4c4fe521ca453640d (patch) | |
tree | 88a80180c14352c7cd7cf65abfe78d9f5276a550 | |
parent | 407d6fcbfdd011bcc2dd9e6923c5cca00abbfc6f (diff) | |
download | linux-4da6a738ffdb99b88efbe5b4c4fe521ca453640d.tar.xz |
gre: add module alias for gre0 tunnel device
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/ipv4/ip_gre.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv4/ip_gre.c b/net/ipv4/ip_gre.c index 98769c3..258c98d 100644 --- a/net/ipv4/ip_gre.c +++ b/net/ipv4/ip_gre.c @@ -1764,3 +1764,4 @@ module_exit(ipgre_fini); MODULE_LICENSE("GPL"); MODULE_ALIAS_RTNL_LINK("gre"); MODULE_ALIAS_RTNL_LINK("gretap"); +MODULE_ALIAS("gre0"); |