]> git.proxmox.com Git - mirror_iproute2.git/commit
{f,m}_bpf: add more example code
authorDaniel Borkmann <daniel@iogearbox.net>
Thu, 26 Nov 2015 14:38:46 +0000 (15:38 +0100)
committerStephen Hemminger <shemming@brocade.com>
Sun, 29 Nov 2015 19:55:16 +0000 (11:55 -0800)
commit0b7e3fc8f1abe63df0d511905b2a09064225f3a5
tree167e6eaa8f1d9d9c1cefa5cd22db76059aae3dac
parent91d88eeb10cd4f51e3b5c675c7aee4ae1e41ff16
{f,m}_bpf: add more example code

I've added three examples to examples/bpf/ that demonstrate how one can
implement eBPF tail calls in tc with f.e. multiple levels of nesting.
That should act as a good starting point, but also as test cases for the
ELF loader and kernel. A real test suite for {f,m,e}_bpf is still to be
developed in future work.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
examples/bpf/README [new file with mode: 0644]
examples/bpf/bpf_cyclic.c [new file with mode: 0644]
examples/bpf/bpf_funcs.h
examples/bpf/bpf_graft.c [new file with mode: 0644]
examples/bpf/bpf_tailcall.c [new file with mode: 0644]