aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/cls_api.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2008-01-23 01:11:50 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:11:11 -0500
commit7ba699c604ab811972eee2e041fd6b07659a2e6e (patch)
tree4f76f69a25ce27ee0dd0c417df75acf00b1a36a0 /net/sched/cls_api.c
parentadd93b610a4e66d36d0cf0b2596c3d3bcfdaee39 (diff)
[NET_SCHED]: Convert actions from rtnetlink to new netlink API
Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/cls_api.c')
-rw-r--r--net/sched/cls_api.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c
index 87be2b2fc29a..d870478e3640 100644
--- a/net/sched/cls_api.c
+++ b/net/sched/cls_api.c
@@ -491,8 +491,7 @@ int tcf_exts_validate(struct tcf_proto *tp, struct nlattr **tb,
491 struct tc_action *act; 491 struct tc_action *act;
492 492
493 if (map->police && tb[map->police]) { 493 if (map->police && tb[map->police]) {
494 act = tcf_action_init_1((struct rtattr *)tb[map->police], 494 act = tcf_action_init_1(tb[map->police], rate_tlv,
495 (struct rtattr *)rate_tlv,
496 "police", TCA_ACT_NOREPLACE, 495 "police", TCA_ACT_NOREPLACE,
497 TCA_ACT_BIND, &err); 496 TCA_ACT_BIND, &err);
498 if (act == NULL) 497 if (act == NULL)
@@ -501,8 +500,7 @@ int tcf_exts_validate(struct tcf_proto *tp, struct nlattr **tb,
501 act->type = TCA_OLD_COMPAT; 500 act->type = TCA_OLD_COMPAT;
502 exts->action = act; 501 exts->action = act;
503 } else if (map->action && tb[map->action]) { 502 } else if (map->action && tb[map->action]) {
504 act = tcf_action_init((struct rtattr *)tb[map->action], 503 act = tcf_action_init(tb[map->action], rate_tlv, NULL,
505 (struct rtattr *)rate_tlv, NULL,
506 TCA_ACT_NOREPLACE, TCA_ACT_BIND, &err); 504 TCA_ACT_NOREPLACE, TCA_ACT_BIND, &err);
507 if (act == NULL) 505 if (act == NULL)
508 return err; 506 return err;