tc, bpf: finalize eBPF support for cls and act front-end
This work finalizes both eBPF front-ends for the classifier and action part in tc, it allows for custom ELF section selection, a simplified tc command frontend (while keeping compat), reusing of common maps between classifier and actions residing in the same object file, and exporting of all map fds to an eBPF agent for handing off further control in user space. It also adds an extensive example of how eBPF can be used, and a minimal self-contained example agent that dumps map data. The example is well documented and hopefully provides a good starting point into programming cls_bpf and act_bpf. Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Cc: Alexei Starovoitov <ast@plumgrid.com> Cc: Jiri Pirko <jiri@resnulli.us> Cc: Jamal Hadi Salim <jhs@mojatatu.com> Acked-by: Alexei Starovoitov <ast@plumgrid.com> Acked-by: Thomas Graf <tgraf@suug.ch> Acked-by: Jiri Pirko <jiri@resnulli.us> Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Showing
examples/bpf/bpf_agent.c
0 → 100644
examples/bpf/bpf_funcs.h
0 → 100644
examples/bpf/bpf_prog.c
0 → 100644
This diff is collapsed.
examples/bpf/bpf_shared.h
0 → 100644
examples/bpf/bpf_sys.h
0 → 100644
include/bpf_elf.h
0 → 100644
include/bpf_scm.h
0 → 100644
This diff is collapsed.
Please register or sign in to comment