diff options
author | stephen hemminger <stephen@networkplumber.org> | 2015-09-24 07:33:34 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-09-25 22:27:22 +0300 |
commit | f1f39f91102733bcde2462c6a138f636ee541ea8 (patch) | |
tree | 5b5acaad2c0b996f0fa516f65b1c43c80da0cce7 /net/l2tp/l2tp_core.h | |
parent | f37db85d0c1eb6e4e8460cf7a13cfba42bfc2cb0 (diff) | |
download | linux-f1f39f91102733bcde2462c6a138f636ee541ea8.tar.xz |
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_core.h')
-rw-r--r-- | net/l2tp/l2tp_core.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/l2tp/l2tp_core.h b/net/l2tp/l2tp_core.h index 68aa9ffd4ae4..5871537af387 100644 --- a/net/l2tp/l2tp_core.h +++ b/net/l2tp/l2tp_core.h @@ -321,4 +321,7 @@ do { \ #define l2tp_dbg(ptr, type, fmt, ...) \ l2tp_printk(ptr, type, pr_debug, fmt, ##__VA_ARGS__) +#define MODULE_ALIAS_L2TP_PWTYPE(type) \ + MODULE_ALIAS("net-l2tp-type-" __stringify(type)) + #endif /* _L2TP_CORE_H_ */ |