aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2005-05-31 18:15:58 -0400
committerDavid S. Miller <davem@davemloft.net>2005-05-31 18:15:58 -0400
commit0451eb074eef30240c6c06dacf2911bee26831e1 (patch)
treeea4504b5d2d7b0662757dd3c49f5f6919baf627d /net/sched
parent208d89843b7b03978d8e748b8b991c1be81c4f43 (diff)
[PKT_SCHED]: Fix dsmark to count ignored indices while walking
Unused indices which are ignored while walking must still be counted to avoid dumping the same index twice. Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched')
-rw-r--r--net/sched/sch_dsmark.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/sched/sch_dsmark.c b/net/sched/sch_dsmark.c
index 8a3db9d95bab..acbe9d2b3e15 100644
--- a/net/sched/sch_dsmark.c
+++ b/net/sched/sch_dsmark.c
@@ -163,14 +163,15 @@ static void dsmark_walk(struct Qdisc *sch,struct qdisc_walker *walker)
163 return; 163 return;
164 for (i = 0; i < p->indices; i++) { 164 for (i = 0; i < p->indices; i++) {
165 if (p->mask[i] == 0xff && !p->value[i]) 165 if (p->mask[i] == 0xff && !p->value[i])
166 continue; 166 goto ignore;
167 if (walker->count >= walker->skip) { 167 if (walker->count >= walker->skip) {
168 if (walker->fn(sch, i+1, walker) < 0) { 168 if (walker->fn(sch, i+1, walker) < 0) {
169 walker->stop = 1; 169 walker->stop = 1;
170 break; 170 break;
171 } 171 }
172 } 172 }
173 walker->count++; 173ignore:
174 walker->count++;
174 } 175 }
175} 176}
176 177