iproute2/examples/bpf
Hangbin Liu 1ac8285a69 examples/bpf: move struct bpf_elf_map defined maps to legacy folder
Reviewed-by: Toke Høiland-Jørgensen <toke@redhat.com>
Signed-off-by: Hangbin Liu <haliu@redhat.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
2020-11-24 22:14:06 -07:00
..
legacy examples/bpf: move struct bpf_elf_map defined maps to legacy folder 2020-11-24 22:14:06 -07:00
README examples/bpf: move struct bpf_elf_map defined maps to legacy folder 2020-11-24 22:14:06 -07:00

README

eBPF toy code examples (running in kernel) to familiarize yourself
with syntax and features:

 - legacy/bpf_shared.c		-> Ingress/egress map sharing example
 - legacy/bpf_tailcall.c	-> Using tail call chains
 - legacy/bpf_cyclic.c		-> Simple cycle as tail calls
 - legacy/bpf_graft.c		-> Demo on altering runtime behaviour
 - legacy/bpf_map_in_map.c	-> Using map in map example

Note: Users should use new BTF way to defined the maps, the examples
in legacy folder which is using struct bpf_elf_map defined maps is not
recommanded.