]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_qdisc: Validate qdisc topology
authorPetr Machata <petrm@nvidia.com>
Tue, 19 Oct 2021 08:07:10 +0000 (11:07 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Oct 2021 11:24:52 +0000 (12:24 +0100)
commitc959dbd53a13eff2bf1c88ce90dae653efe6f342
tree6eed41aa566bccaf07cbd13d4abffa306230ca63
parent3680bd66d015e29fc6c5d5ac047e8d09b3fd80e5
mlxsw: spectrum_qdisc: Validate qdisc topology

A following patch will enable offloading qdiscs that are deeper than
directly under root qdisc. Currently the topology validation consists of
demanding a root qdisc position for ETS and PRIO. Since RED and TBF are
considered classless, this is enough. In order to prevent some nonsensical
combinations when RED and TBF become classful, introduce a more general
topology validator.

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