]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: drv-net: pp_alloc_fail: lower traffic expectations
authorJakub Kicinski <kuba@kernel.org>
Tue, 7 Oct 2025 23:26:52 +0000 (16:26 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 9 Oct 2025 09:10:02 +0000 (11:10 +0200)
commitfbb467f0ed95853ff0f1a20f8d53e8c0eccc2ddb
tree3e03e1cab7d027ebf3e669d3ce093a95c9e3ecc9
parent0be740fb22da998bfc61b932796ee39099694a81
selftests: drv-net: pp_alloc_fail: lower traffic expectations

Lower the expected level of traffic in the pp_alloc_fail test
and calculate failure counter thresholds based on the traffic
rather than using a fixed constant.

We only have "QEMU HW" in NIPA right now, and the test (due to
debug dependencies) only works on debug kernels in the first place.
We need some place for it to pass otherwise it seems to be bit
rotting. So lower the traffic threshold so that it passes on QEMU
and with a debug kernel...

Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/20251007232653.2099376-9-kuba@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
tools/testing/selftests/drivers/net/hw/pp_alloc_fail.py