aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/drivers
diff options
context:
space:
mode:
authorPetr Machata <petrm@mellanox.com>2019-12-18 14:55:17 +0000
committerDavid S. Miller <davem@davemloft.net>2019-12-18 13:32:30 -0800
commit7917f52ae188b87de627a892b57646abfe5a82bc (patch)
treebf70a3d59832c6c1c72a6e9d775add3ccf5eb265 /tools/testing/selftests/drivers
parentnet: sch_ets: Make the ETS qdisc offloadable (diff)
downloadlinux-dev-7917f52ae188b87de627a892b57646abfe5a82bc.tar.xz
linux-dev-7917f52ae188b87de627a892b57646abfe5a82bc.zip
mlxsw: spectrum_qdisc: Generalize PRIO offload to support ETS
Thanks to the similarity between PRIO and ETS it is possible to simply reuse most of the code for offloading PRIO Qdisc. Extract the common functionality into separate functions, making the current PRIO handlers thin API adapters. Extend the new functions to pass quanta for individual bands, which allows configuring a subset of bands as WRR. Invoke mlxsw_sp_port_ets_set() as appropriate to de/configure WRR-ness and weight of individual bands. Signed-off-by: Petr Machata <petrm@mellanox.com> Acked-by: Jiri Pirko <jiri@mellanox.com> Reviewed-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/drivers')
0 files changed, 0 insertions, 0 deletions