]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: drv-net: iou-zcrx: allocate hugepages for large chunks test
authorJakub Kicinski <kuba@kernel.org>
Fri, 27 Feb 2026 17:13:05 +0000 (09:13 -0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 3 Mar 2026 02:21:16 +0000 (18:21 -0800)
commitc7b228418e8b34282d266ffeef59996434a73b32
tree6fe9d77dc920763244c23db84ab8652872630d3d
parent67792dde27a66fa6dc262d5e2ee8260096a9deb3
selftests: drv-net: iou-zcrx: allocate hugepages for large chunks test

The large chunks test needs 2MB hugepages for its mmap allocation,
but the test system may not have any pre-allocated. Ensure at least
64 hugepages are available before running the test, and restore the
original value on cleanup.

While at it strip the stdout, it has a trailing new line.

Before: ok 5 iou-zcrx.test_zcrx_large_chunks # SKIP Can't allocate huge pages
Link: https://patch.msgid.link/20260227171305.2848240-4-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/drivers/net/hw/iou-zcrx.py