summaryrefslogtreecommitdiffstats
path: root/net/l2tp/l2tp_eth.c
diff options
context:
space:
mode:
authorstephen hemminger2015-09-24 06:33:34 +0200
committerDavid S. Miller2015-09-25 21:27:22 +0200
commitf1f39f91102733bcde2462c6a138f636ee541ea8 (patch)
tree5b5acaad2c0b996f0fa516f65b1c43c80da0cce7 /net/l2tp/l2tp_eth.c
parentnet: dsa: Set a "dsa" device_type (diff)
downloadkernel-qcow2-linux-f1f39f91102733bcde2462c6a138f636ee541ea8.tar.gz
kernel-qcow2-linux-f1f39f91102733bcde2462c6a138f636ee541ea8.tar.xz
kernel-qcow2-linux-f1f39f91102733bcde2462c6a138f636ee541ea8.zip
l2tp: auto load type modules
It should not be necessary to do explicit module loading when configuring L2TP. Modules should be loaded as needed instead (as is done already with netlink and other tunnel types). This patch adds a new module alias type and code to load the sub module on demand. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/l2tp/l2tp_eth.c')
-rw-r--r--net/l2tp/l2tp_eth.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/l2tp/l2tp_eth.c b/net/l2tp/l2tp_eth.c
index 4b552873b556..e253c26f31ac 100644
--- a/net/l2tp/l2tp_eth.c
+++ b/net/l2tp/l2tp_eth.c
@@ -358,3 +358,4 @@ MODULE_LICENSE("GPL");
MODULE_AUTHOR("James Chapman <jchapman@katalix.com>");
MODULE_DESCRIPTION("L2TP ethernet pseudowire driver");
MODULE_VERSION("1.0");
+MODULE_ALIAS_L2TP_PWTYPE(5);