From: Patrick McHardy <kaber@trash.net>
To: "David S. Miller" <davem@davemloft.net>
Cc: Maillist netdev <netdev@oss.sgi.com>
Subject: [PATCH PKT_SCHED 5/6]: tcf_exts: rate_tlv is optional
Date: Tue, 11 Jan 2005 22:46:32 +0100 [thread overview]
Message-ID: <41E44938.3070402@trash.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 78 bytes --]
rate_tlv is optional, fixes using actions/policer without a rate estimator.
[-- Attachment #2: 05.diff --]
[-- Type: text/x-patch, Size: 1432 bytes --]
# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
# 2005/01/11 22:12:44+01:00 kaber@coreworks.de
# [PKT_SCHED]: tcf_exts: rate_tlv is optional
#
# Signed-off-by: Patrick McHardy <kaber@trash.net>
#
# net/sched/cls_api.c
# 2005/01/11 22:12:34+01:00 kaber@coreworks.de +3 -3
# [PKT_SCHED]: tcf_exts: rate_tlv is optional
#
# Signed-off-by: Patrick McHardy <kaber@trash.net>
#
diff -Nru a/net/sched/cls_api.c b/net/sched/cls_api.c
--- a/net/sched/cls_api.c 2005-01-11 22:32:25 +01:00
+++ b/net/sched/cls_api.c 2005-01-11 22:32:25 +01:00
@@ -479,7 +479,7 @@
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 @@
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 @@
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);
reply other threads:[~2005-01-11 21:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=41E44938.3070402@trash.net \
--to=kaber@trash.net \
--cc=davem@davemloft.net \
--cc=netdev@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).