We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edb5b63 commit 339346dCopy full SHA for 339346d
net/sched/sch_gred.c
@@ -377,6 +377,7 @@ static int gred_offload_dump_stats(struct Qdisc *sch)
377
/* Even if driver returns failure adjust the stats - in case offload
378
* ended but driver still wants to adjust the values.
379
*/
380
+ sch_tree_lock(sch);
381
for (i = 0; i < MAX_DPs; i++) {
382
if (!table->tab[i])
383
continue;
@@ -393,6 +394,7 @@ static int gred_offload_dump_stats(struct Qdisc *sch)
393
394
sch->qstats.overlimits += hw_stats->stats.qstats[i].overlimits;
395
}
396
_bstats_update(&sch->bstats, bytes, packets);
397
+ sch_tree_unlock(sch);
398
399
kfree(hw_stats);
400
return ret;
0 commit comments