summaryrefslogtreecommitdiff
path: root/.mailmap
diff options
context:
space:
mode:
authorPetr Machata <petrm@nvidia.com>2021-04-20 17:53:44 +0300
committerDavid S. Miller <davem@davemloft.net>2021-04-21 02:43:13 +0300
commit51d52ed955509d34d1a57c50efdce1300047f865 (patch)
treed6539144d7a6661397d2ea186d95ab294c3a05b1 /.mailmap
parentb21832b56807aa513efcb3b06c5e3e5550d28de1 (diff)
downloadlinux-51d52ed955509d34d1a57c50efdce1300047f865.tar.xz
mlxsw: spectrum_qdisc: Track children per qdisc
mlxsw currently allows a two-level structure of qdiscs: the root and possibly a number of children. In order to support offloading more general qdisc trees, introduce to struct mlxsw_sp_qdisc a pointer to child qdiscs. Refer to the child qdiscs through this pointer, instead of going through the tclass_qdiscs in qdisc_state. Additionally introduce a field num_classes, which holds number of given qdisc's children. Also introduce a generic function for walking qdisc trees. Rewrite mlxsw_sp_qdisc_find() and _find_by_handle() to use the generic walker. For now, keep the qdisc_state.tclass_qdisc, and just point root_qdiscs's children to this array. Following patches will make the allocation dynamic. 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 '.mailmap')
0 files changed, 0 insertions, 0 deletions