public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next 0/1] selftests: drv-net-hw: fix pp_alloc_fail test error
@ 2025-01-15 18:13 John Daley
  2025-01-15 18:13 ` [PATCH net-next 1/1] selftests: drv-net-hw: inject pp_alloc_fail errors in the right place John Daley
  2025-01-17  1:20 ` [PATCH net-next 0/1] selftests: drv-net-hw: fix pp_alloc_fail test error patchwork-bot+netdevbpf
  0 siblings, 2 replies; 4+ messages in thread
From: John Daley @ 2025-01-15 18:13 UTC (permalink / raw)
  To: shuah, kuba, sdf, willemb, linux-kselftest, linux-kernel
  Cc: netdev, John Daley

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

-- 
2.44.0


^ permalink raw reply	[flat|nested] 4+ messages in thread
* [PATCH net-next 0/1] selftests: drv-net-hw: fix pp_alloc_fail test error
@ 2025-01-14 22:31 John Daley
  0 siblings, 0 replies; 4+ messages in thread
From: John Daley @ 2025-01-14 22:31 UTC (permalink / raw)
  To: shuah, kuba, sdf, willemb, linux-kselftest, linux-kernel; +Cc: John Daley

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

-- 
2.44.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-01-17  1:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-15 18:13 [PATCH net-next 0/1] selftests: drv-net-hw: fix pp_alloc_fail test error John Daley
2025-01-15 18:13 ` [PATCH net-next 1/1] selftests: drv-net-hw: inject pp_alloc_fail errors in the right place John Daley
2025-01-17  1:20 ` [PATCH net-next 0/1] selftests: drv-net-hw: fix pp_alloc_fail test error patchwork-bot+netdevbpf
  -- strict thread matches above, loose matches on Subject: below --
2025-01-14 22:31 John Daley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox