On Sat, May 4, 2019 at 11:10 AM Eric Dumazet <eduma...@google.com> wrote: > > On Sat, May 4, 2019 at 1:49 PM Cong Wang <xiyou.wangc...@gmail.com> wrote: > > > Sure, v2 is coming. :) > > Another possibility would to reuse existing sch->qstats.overlimits ?
I don't find any way to retrieve qdisc pointer from struct htb_sched, unless we add a pointer there, which will end up bigger. Or refactor the functions on the call path of htb_change_class_mode() to use struct Qdisc*, which will end up a bigger patch. Therefore, I think your suggestion of folding it into 'direct_pkts' is better. Thanks.