selftests: drv-net-hw: fix pp_alloc_fail test error
Status from this message: This patch was applied to netdev/net-next.git (main)
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 All 1 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | selftests: drv-net-hw: inject pp_alloc_fail errors in the right placenet/ tools/ | +4 | 0 replies | Applied |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH net-next 0/1] selftests: drv-net-hw: fix pp_alloc_fail test error
The tool pp_alloc_fail.py tested error recovery by injecting errors into page_pool_alloc_pages(). Perhaps due to the netmems conversion, page_pool_put_full_page() does not end up calling that function.
page_pool_alloc_netmems() seems to be the base function for all the the allocation functions in the API call, so put the error injection there instead.
Signed-off-by John Daley <[email protected]>
John Daley (1):
page_pool: inject pp_alloc_fail errors in the right place
net/core/page_pool.c | 2 +- tools/testing/selftests/drivers/net/hw/pp_alloc_fail.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-)
Signature · 1 line
2.44.0