Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests: mlxsw: Test offloadability of root TBF

TBF can be used as a root qdisc, with the usual ETS/RED/TBF hierarchy below
it. This use should now be offloaded. Add a test that verifies that it is.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Petr Machata and committed by
Jakub Kicinski
3d5290ea 48e4d00b

+14
+14
tools/testing/selftests/drivers/net/mlxsw/sch_offload.sh
··· 6 6 7 7 ALL_TESTS=" 8 8 test_root 9 + test_port_tbf 9 10 test_etsprio 11 + test_etsprio_port_tbf 10 12 " 11 13 NUM_NETIFS=1 12 14 lib_dir=$(dirname $0)/../../../net/forwarding ··· 223 221 do_test_combinations 1 0 224 222 } 225 223 224 + test_port_tbf() 225 + { 226 + with_tbf 1: root \ 227 + do_test_combinations 8 1 228 + } 229 + 226 230 do_test_etsprio() 227 231 { 228 232 local parent=$1; shift ··· 270 262 test_etsprio() 271 263 { 272 264 do_test_etsprio root "" 265 + } 266 + 267 + test_etsprio_port_tbf() 268 + { 269 + with_tbf 1: root \ 270 + do_test_etsprio "parent 1:1" "-TBF" 273 271 } 274 272 275 273 cleanup()