bpf.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH bpf-next v2 0/2] bpf: cpumap: improve error propagation in cpu_map_update_elem()
@ 2025-12-08 13:14 Kohei Enju
  2025-12-08 13:14 ` [PATCH bpf-next v2 1/2] bpf: cpumap: propagate underlying error " Kohei Enju
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Kohei Enju @ 2025-12-08 13:14 UTC (permalink / raw)
  To: netdev, bpf, linux-kselftest
  Cc: Alexei Starovoitov, Daniel Borkmann, David S. Miller,
	Jakub Kicinski, Jesper Dangaard Brouer, John Fastabend,
	Stanislav Fomichev, Andrii Nakryiko, Martin KaFai Lau,
	Eduard Zingerman, Song Liu, Yonghong Song, KP Singh, Hao Luo,
	Jiri Olsa, Shuah Khan, Toke Høiland-Jørgensen,
	kohei.enju, Kohei Enju

This series improves error propagation in cpumap and adds selftests that
cover the failure cases.

Currently, failures returned from __cpu_map_entry_alloc() are ignored
and always converted to -ENOMEM by cpu_map_update_elem(). This series
ensures the correct error propagation and adds selftests.

Changes:
  v2:
    - send to bpf-next, not to bpf
    - drop Fixes: tag
  v1: https://lore.kernel.org/bpf/20251128160504.57844-1-enjuk@amazon.com/

Kohei Enju (2):
  bpf: cpumap: propagate underlying error in cpu_map_update_elem()
  selftests/bpf: add tests for attaching invalid fd

 kernel/bpf/cpumap.c                           | 21 ++++++++++++-------
 .../bpf/prog_tests/xdp_cpumap_attach.c        | 19 +++++++++++++++--
 2 files changed, 30 insertions(+), 10 deletions(-)

-- 
2.51.0


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

end of thread, other threads:[~2025-12-10  8:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-08 13:14 [PATCH bpf-next v2 0/2] bpf: cpumap: improve error propagation in cpu_map_update_elem() Kohei Enju
2025-12-08 13:14 ` [PATCH bpf-next v2 1/2] bpf: cpumap: propagate underlying error " Kohei Enju
2025-12-08 14:19   ` Toke Høiland-Jørgensen
2025-12-08 13:14 ` [PATCH bpf-next v2 2/2] selftests/bpf: add tests for attaching invalid fd Kohei Enju
2025-12-08 14:20   ` Toke Høiland-Jørgensen
2025-12-10  8:00 ` [PATCH bpf-next v2 0/2] bpf: cpumap: improve error propagation in cpu_map_update_elem() patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).