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)
commit2a18c08d75ee04a9159e4bbfb09dbb1e33ef8507
tree069d44bd0d8fdc06546df8d17ee5331c0ae7df3e
parentc2792f38caae108cd1a082b9fa838d47f051ad50
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