aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2005-11-05 15:14:17 -0500
committerThomas Graf <tgr@axs.localdomain>2005-11-05 16:02:27 -0500
commit301d063c2915e8307e3d128245d8a393ad776539 (patch)
tree611d539cc67e86fe8f87736a160cdd9158508b32 /net/sched
parent22b33429ab93155895854e9518a253680a920493 (diff)
[PKT_SCHED]: GRED: Do not reset statistics in gred_reset/gred_change
Qdiscs are not supposed to reset statistics in reset() and while changing parameters. My argumentation is that if the user wants the counters to be reset he can simply remove and readd the qdiscs, that's what most users do anyway. Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Diffstat (limited to 'net/sched')
-rw-r--r--net/sched/sch_gred.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/net/sched/sch_gred.c b/net/sched/sch_gred.c
index a52490c7af3c..50f184cd7f1f 100644
--- a/net/sched/sch_gred.c
+++ b/net/sched/sch_gred.c
@@ -348,10 +348,6 @@ static void gred_reset(struct Qdisc* sch)
348 continue; 348 continue;
349 red_restart(&q->parms); 349 red_restart(&q->parms);
350 q->backlog = 0; 350 q->backlog = 0;
351 q->stats.other = 0;
352 q->stats.forced_drop = 0;
353 q->stats.prob_drop = 0;
354 q->stats.pdrop = 0;
355 } 351 }
356} 352}
357 353
@@ -434,11 +430,6 @@ static inline int gred_change_vq(struct Qdisc *sch, int dp,
434 ctl->qth_min, ctl->qth_max, ctl->Wlog, ctl->Plog, 430 ctl->qth_min, ctl->qth_max, ctl->Wlog, ctl->Plog,
435 ctl->Scell_log, stab); 431 ctl->Scell_log, stab);
436 432
437 q->stats.other = 0;
438 q->stats.forced_drop = 0;
439 q->stats.prob_drop = 0;
440 q->stats.pdrop = 0;
441
442 return 0; 433 return 0;
443} 434}
444 435