summaryrefslogtreecommitdiffstats
path: root/net/l2tp/l2tp_ppp.c
diff options
context:
space:
mode:
authorstephen hemminger <stephen@networkplumber.org>2015-09-23 21:33:34 -0700
committerDavid S. Miller <davem@davemloft.net>2015-09-25 12:27:22 -0700
commitf1f39f91102733bcde2462c6a138f636ee541ea8 (patch)
tree5b5acaad2c0b996f0fa516f65b1c43c80da0cce7 /net/l2tp/l2tp_ppp.c
parentf37db85d0c1eb6e4e8460cf7a13cfba42bfc2cb0 (diff)
downloadtalos-obmc-linux-f1f39f91102733bcde2462c6a138f636ee541ea8.tar.gz
talos-obmc-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_ppp.c')
-rw-r--r--net/l2tp/l2tp_ppp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/l2tp/l2tp_ppp.c b/net/l2tp/l2tp_ppp.c
index f56c9f69e9f2..1ad18c55064c 100644
--- a/net/l2tp/l2tp_ppp.c
+++ b/net/l2tp/l2tp_ppp.c
@@ -1863,3 +1863,4 @@ MODULE_DESCRIPTION("PPP over L2TP over UDP");
MODULE_LICENSE("GPL");
MODULE_VERSION(PPPOL2TP_DRV_VERSION);
MODULE_ALIAS("pppox-proto-" __stringify(PX_PROTO_OL2TP));
+MODULE_ALIAS_L2TP_PWTYPE(11);
OpenPOWER on IntegriCloud