diff options
author | Petr Machata <petrm@nvidia.com> | 2021-04-20 16:53:46 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-04-20 16:43:13 -0700 |
commit | 5cbd96025330c4dacdf8c0c49203a6ef0aea21a2 (patch) | |
tree | 0ae9616c125a68eb7f6409bc981c5ff39dc2b000 /tools/perf/scripts/python/stackcollapse.py | |
parent | cff99e204553c500459712b523d06002a7aae18e (diff) |
mlxsw: spectrum_qdisc: Allocate child qdiscs dynamically
Instead of keeping qdiscs in globally-preallocated arrays, introduce a
per-qdisc-kind value num_classes, and then allocate the necessary child
qdiscs (if any) based on that value. Since now dynamic allocation is
involved, mlxsw_sp_qdisc_replace() gets messy enough that it is worth it to
split it to two cases: a new qdisc allocation and a change of existing
qdisc. (Note that the change also includes what TC formally calls replace,
if the qdisc kind is the same.)
Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions