Skip to content

Various BPF exception improvements

Daniel Xu bpf linux-kselftest lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesIn review 1 of 3 applied

Patches in v1 1 of 3 applied

#Subject and filesSizeRepliesApplied
1/3bpf: xdp: Register generic_kfunc_set with XDP programskernel/bpf/helpers.c+1 -00 repliesApplied
2/3bpf: selftests: Add bpf_assert_if() and bpf_assert_with_if() macrostools/testing/selftests/bpf/bpf_experimental.h+22 -03 replies
3/3bpf: selftests: Test bpf_assert_if() and bpf_assert_with_if()tools/testing/selftests/bpf/prog_tests/exceptions.c tools/testing/selftests/bpf/progs/exceptions.c+66 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH bpf-next 0/3] Various BPF exception improvements

Two small improves to BPF exceptions in this patchset:

1. Allow throwing exceptions in XDP progs
2. Add some macros to help release references before throwing exceptions

Note the macros are intended to be temporary, at least until BPF exception infra is able to automatically release acquired resources.

Daniel Xu (3):
bpf: xdp: Register generic_kfunc_set with XDP programs
bpf: selftests: Add bpf_assert_if() and bpf_assert_with_if() macros
bpf: selftests: Test bpf_assert_if() and bpf_assert_with_if()

 kernel/bpf/helpers.c                          |  1 +
 .../testing/selftests/bpf/bpf_experimental.h  | 22 +++++++
 .../selftests/bpf/prog_tests/exceptions.c     |  5 ++
 .../testing/selftests/bpf/progs/exceptions.c  | 61 +++++++++++++++++++
 4 files changed, 89 insertions(+)
Signature · 1 line
2.42.1