From: Patrick McHardy <kaber@trash.net>
To: "David S. Miller" <davem@davemloft.net>
Cc: Maillist netdev <netdev@oss.sgi.com>
Subject: [PATCH PKT_SCHED 1/4]: cls_rsvp: fix tcf_exts fallout
Date: Wed, 19 Jan 2005 05:38:42 +0100 [thread overview]
Message-ID: <41EDE452.8000007@trash.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 1 bytes --]
[-- Attachment #2: 01.diff --]
[-- Type: text/x-patch, Size: 2960 bytes --]
# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
# 2005/01/19 02:49:12+01:00 kaber@coreworks.de
# [PKT_SCHED]: cls_rsvp: fix tcf_exts fallout
#
# The continue is supposed to continue the outer loop, not break
# out of the do { } while (0) loop. cls_route.c is also changed
# in a similar way for clarity, although it behaved correctly.
#
# Signed-off-by: Patrick McHardy <kaber@trash.net>
#
# net/sched/cls_rsvp.h
# 2005/01/19 02:49:04+01:00 kaber@coreworks.de +8 -8
# [PKT_SCHED]: cls_rsvp: fix tcf_exts fallout
#
# The continue is supposed to continue the outer loop, not break
# out of the do { } while (0) loop. cls_route.c is also changed
# in a similar way for clarity, although it behaved correctly.
#
# Signed-off-by: Patrick McHardy <kaber@trash.net>
#
# net/sched/cls_route.c
# 2005/01/19 02:49:04+01:00 kaber@coreworks.de +14 -14
# [PKT_SCHED]: cls_rsvp: fix tcf_exts fallout
#
# The continue is supposed to continue the outer loop, not break
# out of the do { } while (0) loop. cls_route.c is also changed
# in a similar way for clarity, although it behaved correctly.
#
# Signed-off-by: Patrick McHardy <kaber@trash.net>
#
diff -Nru a/net/sched/cls_route.c b/net/sched/cls_route.c
--- a/net/sched/cls_route.c 2005-01-19 05:29:45 +01:00
+++ b/net/sched/cls_route.c 2005-01-19 05:29:45 +01:00
@@ -125,20 +125,20 @@
return 32;
}
-#define ROUTE4_APPLY_RESULT() \
- do { \
- *res = f->res; \
- if (tcf_exts_is_available(&f->exts)) { \
- int r = tcf_exts_exec(skb, &f->exts, res); \
- if (r < 0) { \
- dont_cache = 1; \
- continue; \
- } \
- return r; \
- } else if (!dont_cache) \
- route4_set_fastmap(head, id, iif, f); \
- return 0; \
- } while(0)
+#define ROUTE4_APPLY_RESULT() \
+{ \
+ *res = f->res; \
+ if (tcf_exts_is_available(&f->exts)) { \
+ int r = tcf_exts_exec(skb, &f->exts, res); \
+ if (r < 0) { \
+ dont_cache = 1; \
+ continue; \
+ } \
+ return r; \
+ } else if (!dont_cache) \
+ route4_set_fastmap(head, id, iif, f); \
+ return 0; \
+}
static int route4_classify(struct sk_buff *skb, struct tcf_proto *tp,
struct tcf_result *res)
diff -Nru a/net/sched/cls_rsvp.h b/net/sched/cls_rsvp.h
--- a/net/sched/cls_rsvp.h 2005-01-19 05:29:44 +01:00
+++ b/net/sched/cls_rsvp.h 2005-01-19 05:29:45 +01:00
@@ -123,14 +123,14 @@
.action = TCA_RSVP_ACT
};
-#define RSVP_APPLY_RESULT() \
- do { \
- int r = tcf_exts_exec(skb, &f->exts, res); \
- if (r < 0) \
- continue; \
- else if (r > 0) \
- return r; \
- } while(0)
+#define RSVP_APPLY_RESULT() \
+{ \
+ int r = tcf_exts_exec(skb, &f->exts, res); \
+ if (r < 0) \
+ continue; \
+ else if (r > 0) \
+ return r; \
+}
static int rsvp_classify(struct sk_buff *skb, struct tcf_proto *tp,
struct tcf_result *res)
reply other threads:[~2005-01-19 4:38 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=41EDE452.8000007@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).