bpf: xdp: Register generic_kfunc_set with XDP programs
authorDaniel Xu <dxu@dxuuu.xyz>
Thu, 14 Dec 2023 22:56:25 +0000 (15:56 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 15 Dec 2023 03:12:16 +0000 (19:12 -0800)
commit7489723c2e26504573dbb49b66bbc59092840008
tree1a7a5f68c9012ebec507b80fb9c48bc456f5bb2a
parent0f5d5454c723d5c729d4676860a390c31c466f50
bpf: xdp: Register generic_kfunc_set with XDP programs

Registering generic_kfunc_set with XDP programs enables some of the
newer BPF features inside XDP -- namely tree based data structures and
BPF exceptions.

The current motivation for this commit is to enable assertions inside
XDP bpf progs. Assertions are a standard and useful tool to encode
intent.

Signed-off-by: Daniel Xu <dxu@dxuuu.xyz>
Link: https://lore.kernel.org/r/d07d4614b81ca6aada44fcb89bb6b618fb66e4ca.1702594357.git.dxu@dxuuu.xyz
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/helpers.c