]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd58a97b1ee00c9f8ef5725e0167dbb4642514540
tree633119518b63ba953acd192b48f47d8739d57234
parent2a6a8ff3c41e9418ce56390f529660291120aae2
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