mlxsw: spectrum_qdisc: Index future FIFOs by band number
authorPetr Machata <petrm@nvidia.com>
Tue, 20 Apr 2021 14:53:47 +0000 (16:53 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Apr 2021 23:43:13 +0000 (16:43 -0700)
commit7de85b0431cd46db24f800a67011616ce0aa6120
tree633119518b63ba953acd192b48f47d8739d57234
parent5cbd96025330c4dacdf8c0c49203a6ef0aea21a2
mlxsw: spectrum_qdisc: Index future FIFOs by band number

mlxsw used to hold an array of qdiscs indexed by the TC number. In the
previous patch, it was changed to allocate child qdiscs dynamically, and
they are now indexed by band number. Follow suit with the array of future
FIFOs.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c