diff options
author | Patrick McHardy <kaber@coreworks.de> | 2005-01-12 00:12:44 +0100 |
---|---|---|
committer | Patrick McHardy <kaber@coreworks.de> | 2005-01-12 00:12:44 +0100 |
commit | 0d8fd254273e97900f1a2b2726e211aeb8b7b42d (patch) | |
tree | 29e1246f3ab070e0d5a57d3ca9f04e7041f5527f /net | |
parent | 8d7c694553dcb5f84f5018c1e7727f5ab4c33d79 (diff) | |
download | history-0d8fd254273e97900f1a2b2726e211aeb8b7b42d.tar.gz |
[PKT_SCHED]: tcf_exts: rate_tlv is optional
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/sched/cls_api.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c index b0a2e07f7bc1c4..1485789e70e7b2 100644 --- a/net/sched/cls_api.c +++ b/net/sched/cls_api.c @@ -479,7 +479,7 @@ tcf_exts_validate(struct tcf_proto *tp, struct rtattr **tb, int err; struct tc_action *act; - if (map->police && tb[map->police-1] && rate_tlv) { + if (map->police && tb[map->police-1]) { act = tcf_action_init_1(tb[map->police-1], rate_tlv, "police", TCA_ACT_NOREPLACE, TCA_ACT_BIND, &err); if (act == NULL) @@ -487,7 +487,7 @@ tcf_exts_validate(struct tcf_proto *tp, struct rtattr **tb, act->type = TCA_OLD_COMPAT; exts->action = act; - } else if (map->action && tb[map->action-1] && rate_tlv) { + } else if (map->action && tb[map->action-1]) { act = tcf_action_init(tb[map->action-1], rate_tlv, NULL, TCA_ACT_NOREPLACE, TCA_ACT_BIND, &err); if (act == NULL) @@ -496,7 +496,7 @@ tcf_exts_validate(struct tcf_proto *tp, struct rtattr **tb, exts->action = act; } #elif defined CONFIG_NET_CLS_POLICE - if (map->police && tb[map->police-1] && rate_tlv) { + if (map->police && tb[map->police-1]) { struct tcf_police *p; p = tcf_police_locate(tb[map->police-1], rate_tlv); |