aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/cls_api.c
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2007-03-22 14:56:22 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 01:27:10 -0400
commit82623c0d73bd111cad26e501e509966b2455b0e0 (patch)
tree9b7b125e4c6a26720826de4bfe593199ee71bc93 /net/sched/cls_api.c
parentbe577ddc2b4aca0849f701222f5bc13cf1b79c9a (diff)
[PKT_SCHED] cls: 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/cls_api.c')
-rw-r--r--net/sched/cls_api.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c
index 3d0a6cdcaebc..ca3da5013b7a 100644
--- a/net/sched/cls_api.c
+++ b/net/sched/cls_api.c
@@ -29,7 +29,6 @@
29#include <linux/interrupt.h> 29#include <linux/interrupt.h>
30#include <linux/netdevice.h> 30#include <linux/netdevice.h>
31#include <linux/skbuff.h> 31#include <linux/skbuff.h>
32#include <linux/rtnetlink.h>
33#include <linux/init.h> 32#include <linux/init.h>
34#include <linux/kmod.h> 33#include <linux/kmod.h>
35#include <linux/netlink.h> 34#include <linux/netlink.h>
@@ -616,18 +615,11 @@ rtattr_failure: __attribute__ ((unused))
616 615
617static int __init tc_filter_init(void) 616static int __init tc_filter_init(void)
618{ 617{
619 struct rtnetlink_link *link_p = rtnetlink_links[PF_UNSPEC]; 618 rtnl_register(PF_UNSPEC, RTM_NEWTFILTER, tc_ctl_tfilter, NULL);
619 rtnl_register(PF_UNSPEC, RTM_DELTFILTER, tc_ctl_tfilter, NULL);
620 rtnl_register(PF_UNSPEC, RTM_GETTFILTER, tc_ctl_tfilter,
621 tc_dump_tfilter);
620 622
621 /* Setup rtnetlink links. It is made here to avoid
622 exporting large number of public symbols.
623 */
624
625 if (link_p) {
626 link_p[RTM_NEWTFILTER-RTM_BASE].doit = tc_ctl_tfilter;
627 link_p[RTM_DELTFILTER-RTM_BASE].doit = tc_ctl_tfilter;
628 link_p[RTM_GETTFILTER-RTM_BASE].doit = tc_ctl_tfilter;
629 link_p[RTM_GETTFILTER-RTM_BASE].dumpit = tc_dump_tfilter;
630 }
631 return 0; 623 return 0;
632} 624}
633 625