]> git.proxmox.com Git - mirror_iproute2.git/commit
examples/bpf: add bpf examples with BTF defined maps
authorHangbin Liu <haliu@redhat.com>
Mon, 23 Nov 2020 13:12:01 +0000 (21:12 +0800)
committerDavid Ahern <dsahern@gmail.com>
Wed, 25 Nov 2020 05:14:08 +0000 (22:14 -0700)
commit71c7c1fb4ff0a7abaf22e4d3052b9a2928019c61
tree3eb361827219cb07f3b102862827d3c5e81bc5b2
parent1ac8285a692e45beb846ee8e38472815b3945747
examples/bpf: add bpf examples with BTF defined maps

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>
examples/bpf/README
examples/bpf/bpf_graft.c [new file with mode: 0644]
examples/bpf/bpf_map_in_map.c [new file with mode: 0644]
examples/bpf/bpf_shared.c [new file with mode: 0644]
include/bpf_api.h