]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: mlxsw: tc_restrictions: Fix test failure with new iproute2
authorIdo Schimmel <idosch@nvidia.com>
Mon, 9 Feb 2026 13:53:53 +0000 (14:53 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 13 Feb 2026 02:36:08 +0000 (18:36 -0800)
commita2646773a005b59fd1dc7ff3ba15df84889ca5d2
tree7fd5577ef0b3286deabbfa991646563e5d999f67
parenta6a9bc544b675d8b5180f2718ec985ad267b5cbf
selftests: mlxsw: tc_restrictions: Fix test failure with new iproute2

As explained in [1], iproute2 started rejecting tc-police burst sizes
that result in an overflow. This can happen when the burst size is high
enough and the rate is low enough.

A couple of test cases specify such configurations, resulting in
iproute2 errors and test failure.

Fix by reducing the burst size so that the test will pass with both new
and old iproute2 versions.

[1] https://lore.kernel.org/netdev/20250916215731.3431465-1-jay.vosburgh@canonical.com/

Fixes: cb12d1763267 ("selftests: mlxsw: tc_restrictions: Test tc-police restrictions")
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/88b00c6e85188aa6a065dc240206119b328c46e1.1770643998.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/drivers/net/mlxsw/tc_restrictions.sh