[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>

authored by

Thomas Graf and committed by
David S. Miller
0451eb07 208d8984

+3 -2
+3 -2
net/sched/sch_dsmark.c
··· 163 return; 164 for (i = 0; i < p->indices; i++) { 165 if (p->mask[i] == 0xff && !p->value[i]) 166 - continue; 167 if (walker->count >= walker->skip) { 168 if (walker->fn(sch, i+1, walker) < 0) { 169 walker->stop = 1; 170 break; 171 } 172 } 173 - walker->count++; 174 } 175 } 176
··· 163 return; 164 for (i = 0; i < p->indices; i++) { 165 if (p->mask[i] == 0xff && !p->value[i]) 166 + goto ignore; 167 if (walker->count >= walker->skip) { 168 if (walker->fn(sch, i+1, walker) < 0) { 169 walker->stop = 1; 170 break; 171 } 172 } 173 + ignore: 174 + walker->count++; 175 } 176 } 177