diff options
author | Jean Delvare <jdelvare@suse.de> | 2007-10-21 16:44:04 -0700 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-22 02:59:54 -0700 |
commit | 305e1e96911417d8cda2699f6a20a6f434616a8c (patch) | |
tree | 02cc300a2a32478c470d93b7a79dfd7e3b71b560 /include/linux | |
parent | 81429973cfff7745792c877dd083eec29724ec97 (diff) | |
download | kernel_samsung_aries-305e1e96911417d8cda2699f6a20a6f434616a8c.zip kernel_samsung_aries-305e1e96911417d8cda2699f6a20a6f434616a8c.tar.gz kernel_samsung_aries-305e1e96911417d8cda2699f6a20a6f434616a8c.tar.bz2 |
[INET]: Let inet_diag and friends autoload
By adding module aliases to inet_diag, tcp_diag and dccp_diag, we let
them load automatically as needed. This makes tools like "ss" run
faster.
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/net.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/net.h b/include/linux/net.h index c136abc..dd79cdb 100644 --- a/include/linux/net.h +++ b/include/linux/net.h @@ -313,6 +313,10 @@ static const struct proto_ops name##_ops = { \ #define MODULE_ALIAS_NET_PF_PROTO(pf, proto) \ MODULE_ALIAS("net-pf-" __stringify(pf) "-proto-" __stringify(proto)) +#define MODULE_ALIAS_NET_PF_PROTO_TYPE(pf, proto, type) \ + MODULE_ALIAS("net-pf-" __stringify(pf) "-proto-" __stringify(proto) \ + "-type-" __stringify(type)) + #ifdef CONFIG_SYSCTL #include <linux/sysctl.h> extern ctl_table net_table[]; |