| To: | "David S. Miller" <davem@xxxxxxxxxxxxx> |
|---|---|
| Subject: | [PATCH 1/7] [PKT_SCHED] Fix dsmark to count ignored indices while walking |
| From: | Thomas Graf <tgraf@xxxxxxx> |
| Date: | Fri, 27 May 2005 16:50:58 +0200 |
| Cc: | werner@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx |
| In-reply-to: | <20050527145002.GR15391@xxxxxxxxxxxxxx> |
| References: | <20050527145002.GR15391@xxxxxxxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
Unused indices which are ignored while walking must still
be counted to avoid dumping the same index twice.
Signed-off-by: Thomas Graf <tgraf@xxxxxxx>
---
commit 99ed2eb92cc035b223e2d383446f7f183600ba27
tree 127116412eeedf62fcda0acc882500cd981cbab1
parent e66646bb6686bb1be24e25b3743028f762544de2
author Thomas Graf <tgraf@xxxxxxx> Fri, 27 May 2005 14:29:52 +0200
committer Thomas Graf <tgraf@xxxxxxx> Fri, 27 May 2005 14:29:52 +0200
net/sched/sch_dsmark.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
Index: net/sched/sch_dsmark.c
===================================================================
--- 735126283c38e22995f5da71b2e90a9d71ac4b1e/net/sched/sch_dsmark.c
(mode:100644)
+++ 127116412eeedf62fcda0acc882500cd981cbab1/net/sched/sch_dsmark.c
(mode:100644)
@@ -163,14 +163,15 @@
return;
for (i = 0; i < p->indices; i++) {
if (p->mask[i] == 0xff && !p->value[i])
- continue;
+ goto ignore;
if (walker->count >= walker->skip) {
if (walker->fn(sch, i+1, walker) < 0) {
walker->stop = 1;
break;
}
}
- walker->count++;
+ignore:
+ walker->count++;
}
}
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCHSET] dsmark fixes & cleanups, Thomas Graf |
|---|---|
| Next by Date: | [PATCH 2/7] [PKT_SCHED] make dsmark try using pfifo instead of noop while grafting, Thomas Graf |
| Previous by Thread: | [PATCHSET] dsmark fixes & cleanups, Thomas Graf |
| Next by Thread: | Re: [PATCH 1/7] [PKT_SCHED] Fix dsmark to count ignored indices while walking, David S. Miller |
| Indexes: | [Date] [Thread] [Top] [All Lists] |