[PKT_SCHED] act: Use rtnl registration interface
Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
82623c0d73
commit
708914cc5e
@@ -25,7 +25,6 @@
|
|||||||
#include <linux/interrupt.h>
|
#include <linux/interrupt.h>
|
||||||
#include <linux/netdevice.h>
|
#include <linux/netdevice.h>
|
||||||
#include <linux/skbuff.h>
|
#include <linux/skbuff.h>
|
||||||
#include <linux/rtnetlink.h>
|
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/kmod.h>
|
#include <linux/kmod.h>
|
||||||
#include <net/sock.h>
|
#include <net/sock.h>
|
||||||
@@ -1077,14 +1076,9 @@ nlmsg_failure:
|
|||||||
|
|
||||||
static int __init tc_action_init(void)
|
static int __init tc_action_init(void)
|
||||||
{
|
{
|
||||||
struct rtnetlink_link *link_p = rtnetlink_links[PF_UNSPEC];
|
rtnl_register(PF_UNSPEC, RTM_NEWACTION, tc_ctl_action, NULL);
|
||||||
|
rtnl_register(PF_UNSPEC, RTM_DELACTION, tc_ctl_action, NULL);
|
||||||
if (link_p) {
|
rtnl_register(PF_UNSPEC, RTM_GETACTION, tc_ctl_action, tc_dump_action);
|
||||||
link_p[RTM_NEWACTION-RTM_BASE].doit = tc_ctl_action;
|
|
||||||
link_p[RTM_DELACTION-RTM_BASE].doit = tc_ctl_action;
|
|
||||||
link_p[RTM_GETACTION-RTM_BASE].doit = tc_ctl_action;
|
|
||||||
link_p[RTM_GETACTION-RTM_BASE].dumpit = tc_dump_action;
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user