File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -375,6 +375,7 @@ static int drr_enqueue(struct sk_buff *skb, struct Qdisc *sch)
375
375
cl -> deficit = cl -> quantum ;
376
376
}
377
377
378
+ qdisc_qstats_backlog_inc (sch , skb );
378
379
sch -> q .qlen ++ ;
379
380
return err ;
380
381
}
@@ -407,6 +408,7 @@ static struct sk_buff *drr_dequeue(struct Qdisc *sch)
407
408
408
409
bstats_update (& cl -> bstats , skb );
409
410
qdisc_bstats_update (sch , skb );
411
+ qdisc_qstats_backlog_dec (sch , skb );
410
412
sch -> q .qlen -- ;
411
413
return skb ;
412
414
}
@@ -428,6 +430,7 @@ static unsigned int drr_drop(struct Qdisc *sch)
428
430
if (cl -> qdisc -> ops -> drop ) {
429
431
len = cl -> qdisc -> ops -> drop (cl -> qdisc );
430
432
if (len > 0 ) {
433
+ sch -> qstats .backlog -= len ;
431
434
sch -> q .qlen -- ;
432
435
if (cl -> qdisc -> q .qlen == 0 )
433
436
list_del (& cl -> alist );
@@ -463,6 +466,7 @@ static void drr_reset_qdisc(struct Qdisc *sch)
463
466
qdisc_reset (cl -> qdisc );
464
467
}
465
468
}
469
+ sch -> qstats .backlog = 0 ;
466
470
sch -> q .qlen = 0 ;
467
471
}
468
472
You can’t perform that action at this time.
0 commit comments