Skip to content

selftests: drv-net-hw: fix pp_alloc_fail test error

John Daley linux-kselftest lkml netdev 1 version Applied

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

  1. v1 Latest1 patch 0 repliesApplied 1/1

Patches in v1 All 1 applied

#Subject and filesSizeRepliesApplied
1/1selftests: drv-net-hw: inject pp_alloc_fail errors in the right placenet/core/page_pool.c tools/testing/selftests/drivers/net/hw/pp_alloc_fail.py+4 -40 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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.

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