diff options
author | Thomas Graf <tgraf@suug.ch> | 2007-03-22 14:56:59 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 01:27:11 -0400 |
commit | 708914cc5e1657eb1a1f9eefc6333dfd2df8c73a (patch) | |
tree | 15ee9900cc96684c957d364f617d882f918fb8b5 /net/sched/act_api.c | |
parent | 82623c0d73bd111cad26e501e509966b2455b0e0 (diff) |
[PKT_SCHED] act: Use rtnl registration interface
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/act_api.c')
-rw-r--r-- | net/sched/act_api.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/net/sched/act_api.c b/net/sched/act_api.c index f002f74f3763..711dd26c95c3 100644 --- a/net/sched/act_api.c +++ b/net/sched/act_api.c | |||
@@ -25,7 +25,6 @@ | |||
25 | #include <linux/interrupt.h> | 25 | #include <linux/interrupt.h> |
26 | #include <linux/netdevice.h> | 26 | #include <linux/netdevice.h> |
27 | #include <linux/skbuff.h> | 27 | #include <linux/skbuff.h> |
28 | #include <linux/rtnetlink.h> | ||
29 | #include <linux/init.h> | 28 | #include <linux/init.h> |
30 | #include <linux/kmod.h> | 29 | #include <linux/kmod.h> |
31 | #include <net/sock.h> | 30 | #include <net/sock.h> |
@@ -1077,14 +1076,9 @@ nlmsg_failure: | |||
1077 | 1076 | ||
1078 | static int __init tc_action_init(void) | 1077 | static int __init tc_action_init(void) |
1079 | { | 1078 | { |
1080 | struct rtnetlink_link *link_p = rtnetlink_links[PF_UNSPEC]; | 1079 | rtnl_register(PF_UNSPEC, RTM_NEWACTION, tc_ctl_action, NULL); |
1081 | 1080 | rtnl_register(PF_UNSPEC, RTM_DELACTION, tc_ctl_action, NULL); | |
1082 | if (link_p) { | 1081 | rtnl_register(PF_UNSPEC, RTM_GETACTION, tc_ctl_action, tc_dump_action); |
1083 | link_p[RTM_NEWACTION-RTM_BASE].doit = tc_ctl_action; | ||
1084 | link_p[RTM_DELACTION-RTM_BASE].doit = tc_ctl_action; | ||
1085 | link_p[RTM_GETACTION-RTM_BASE].doit = tc_ctl_action; | ||
1086 | link_p[RTM_GETACTION-RTM_BASE].dumpit = tc_dump_action; | ||
1087 | } | ||
1088 | 1082 | ||
1089 | return 0; | 1083 | return 0; |
1090 | } | 1084 | } |