mbox series

[net-next,0/1] selftests: drv-net-hw: fix pp_alloc_fail test error

Message ID 20250114223159.29677-1-johndale@cisco.com (mailing list archive)
Headers show
Series selftests: drv-net-hw: fix pp_alloc_fail test error | expand

Message

John Daley Jan. 14, 2025, 10:31 p.m. UTC
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 <johndale@cisco.com>

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(-)