mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-10-05 13:25:53 +00:00
![]() Follow-up to kernel commit 6c9059817432 ("bpf: pre-allocate hash map elements"). Add flags support, so that we can pass in BPF_F_NO_PREALLOC flag for disallowing preallocation. Update examples accordingly and also remove the BPF_* map helper macros from them as they were not very useful. Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> |
||
---|---|---|
.. | ||
bpf_agent.c | ||
bpf_cyclic.c | ||
bpf_graft.c | ||
bpf_prog.c | ||
bpf_shared.c | ||
bpf_shared.h | ||
bpf_sys.h | ||
bpf_tailcall.c | ||
README |
eBPF toy code examples (running in kernel) to familiarize yourself with syntax and features: - bpf_prog.c -> Classifier examples with using maps - bpf_shared.c -> Ingress/egress map sharing example - bpf_tailcall.c -> Using tail call chains - bpf_cyclic.c -> Simple cycle as tail calls - bpf_graft.c -> Demo on altering runtime behaviour User space code example: - bpf_agent.c -> Counterpart to bpf_prog.c for user space to transfer/read out map data