]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - net/sched/sch_mqprio.c
net: sched: fix `tc -s class show` no bstats on class with nolock subqueues
[linux.git] / net / sched / sch_mqprio.c
index 46980b8d66c5ba74e9b5d46bf5a2179c33517f77..0d0113a24962848e958fd7e058b5b5d32f071ff4 100644 (file)
@@ -557,8 +557,8 @@ static int mqprio_dump_class_stats(struct Qdisc *sch, unsigned long cl,
                struct netdev_queue *dev_queue = mqprio_queue_get(sch, cl);
 
                sch = dev_queue->qdisc_sleeping;
-               if (gnet_stats_copy_basic(qdisc_root_sleeping_running(sch),
-                                         d, NULL, &sch->bstats) < 0 ||
+               if (gnet_stats_copy_basic(qdisc_root_sleeping_running(sch), d,
+                                         sch->cpu_bstats, &sch->bstats) < 0 ||
                    qdisc_qstats_copy(d, sch) < 0)
                        return -1;
        }