]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_qdisc: Make RED, TBF offloads classful
authorPetr Machata <petrm@nvidia.com>
Tue, 19 Oct 2021 08:07:11 +0000 (11:07 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Oct 2021 11:24:52 +0000 (12:24 +0100)
commit1f812aff51f41958031849413f5fb566f52d31dc
tree069d44bd0d8fdc06546df8d17ee5331c0ae7df3e
parentc959dbd53a13eff2bf1c88ce90dae653efe6f342
mlxsw: spectrum_qdisc: Make RED, TBF offloads classful

Permit offloading qdiscs below RED and TBF. In order to avoid having to
implement trivial propagating callbacks for get_prio_bitmap and
get_tclass_num, extend mlxsw_sp_qdisc_get_prio_bitmap() and
..._get_tclass_num() to handle the lack of the callback as a cue to forward
the request to the parent.

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