Skip to content

bpf: tidy up internals of bpf key handling

James Bottomley bpf linux-trace-kernel oe-kbuild oe-kbuild-all 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 5 repliesIn review
  2. v13 patches 1 replySuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3bpf: make bpf_key an opaque typeinclude/linux/bpf.h kernel/trace/bpf_trace.c+6 -40 replies
2/3bpf: remove bpf_key referencekernel/trace/bpf_trace.c+2 -54 replies
3/3bpf: eliminate the allocation of an intermediate struct bpf_keykernel/trace/bpf_trace.c+16 -271 reply

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/3] bpf: tidy up internals of bpf key handling

This patch series reduces the size of the implementing code and eliminates allocations on the bpf_key_lookup paths. There is no externally visible change to the BPF API.

v2 fixes the test failures by keeping an empty bpf_key structure and differentiating between failure and builtin key returns.

Regards,

James

James Bottomley (3):
bpf: make bpf_key an opaque type
bpf: remove bpf_key reference
bpf: eliminate the allocation of an intermediate struct bpf_key

 include/linux/bpf.h      |  5 +----
 kernel/trace/bpf_trace.c | 47 ++++++++++++++++------------------------
 2 files changed, 20 insertions(+), 32 deletions(-)
Signature · 1 line
2.43.0