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