diff options
author | Davide Caratti <[email protected]> | 2021-10-07 15:05:02 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2021-10-08 15:20:05 +0100 |
commit | 454d3e1ae057a1e09a15905b06b860f60d6c14d0 (patch) | |
tree | b0ec4b187a3f0f4098b65915d413d0620378f277 /tools/perf/scripts/python/check-perf-trace.py | |
parent | d5ac07dfbd2b7f05d8ff43924dee2f09675dacb3 (diff) |
net/sched: sch_ets: properly init all active DRR list handles
leaf classes of ETS qdiscs are served in strict priority or deficit round
robin (DRR), depending on the value of 'nstrict'. Since this value can be
changed while traffic is running, we need to be sure that the active list
of DRR classes can be updated at any time, so:
1) call INIT_LIST_HEAD(&alist) on all leaf classes in .init(), before the
first packet hits any of them.
2) ensure that 'alist' is not overwritten with zeros when a leaf class is
no more strict priority nor DRR (i.e. array elements beyond 'nbands').
Link: https://lore.kernel.org/netdev/YS%[email protected]
Suggested-by: Cong Wang <[email protected]>
Signed-off-by: Davide Caratti <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions