mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-10-06 16:14:44 +00:00
![]() Add support for map in map in the loader and add a small example program. The outer map uses inner_id to reference a bpf_elf_map with a given ID as the inner type. Loading maps is done in three passes, i) all non-map in map maps are loaded, ii) all map in map maps are loaded based on the inner_id map spec of a non-map in map with corresponding id, and iii) related inner maps are attached to the map in map with given inner_idx key. Pinned objetcs are assumed to be managed externally, so they are only retrieved from BPF fs. Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> |
||
---|---|---|
.. | ||
bpf_cyclic.c | ||
bpf_graft.c | ||
bpf_map_in_map.c | ||
bpf_shared.c | ||
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