mirror of
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git
synced 2024-11-27 11:54:53 +08:00
71c7c1fb4f
Users should try use the new BTF defined maps instead of struct bpf_elf_map defined maps. The tail call examples are not added yet as libbpf doesn't currently support declaratively populating tail call maps. 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> |
||
---|---|---|
.. | ||
legacy | ||
bpf_graft.c | ||
bpf_map_in_map.c | ||
bpf_shared.c | ||
README |
eBPF toy code examples (running in kernel) to familiarize yourself with syntax and features: - BTF defined map examples - bpf_graft.c -> Demo on altering runtime behaviour - bpf_shared.c -> Ingress/egress map sharing example - bpf_map_in_map.c -> Using map in map example - legacy struct bpf_elf_map defined map examples - 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.