]> www.infradead.org Git - users/dwmw2/linux.git/commit
selftests: drv-net-hw: inject pp_alloc_fail errors in the right place
authorJohn Daley <johndale@cisco.com>
Wed, 15 Jan 2025 18:13:12 +0000 (10:13 -0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 17 Jan 2025 01:18:53 +0000 (17:18 -0800)
commit8d20dcda404d48784f2359976811bfc189992aa0
tree3490c628eaee74b0e8ea91992f5ca47be5c80752
parent65a55aa7e64eefcd2a7f530a0bf8d21d20bffd37
selftests: drv-net-hw: inject pp_alloc_fail errors in the right place

The tool pp_alloc_fail.py tested error recovery by injecting errors
into the function page_pool_alloc_pages(). The page pool allocation
function page_pool_dev_alloc() does not end up calling
page_pool_alloc_pages(). page_pool_alloc_netmems() seems to be the
function that is called by all of the page pool alloc functions in
the API, so move error injection to that function instead.

Signed-off-by: John Daley <johndale@cisco.com>
Link: https://patch.msgid.link/20250115181312.3544-2-johndale@cisco.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/page_pool.c
tools/testing/selftests/drivers/net/hw/pp_alloc_fail.py