mirror_iproute2/examples/bpf
Daniel Borkmann 612ff099a1 bpf: support loading map in map from obj
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>
2017-07-18 17:20:45 -07:00
..
bpf_cyclic.c tc, bpf: add support for map pre/allocation 2016-04-11 21:54:47 +00:00
bpf_graft.c tc, bpf: add support for map pre/allocation 2016-04-11 21:54:47 +00:00
bpf_map_in_map.c bpf: support loading map in map from obj 2017-07-18 17:20:45 -07:00
bpf_shared.c tc, bpf: add support for map pre/allocation 2016-04-11 21:54:47 +00:00
bpf_tailcall.c tc, bpf: add support for map pre/allocation 2016-04-11 21:54:47 +00:00
README {f,m}_bpf: add more example code 2015-11-29 11:55:16 -08:00

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