net: filter: split filter.h and expose eBPF to user space
authorAlexei Starovoitov <ast@plumgrid.com>
Fri, 5 Sep 2014 05:17:18 +0000 (22:17 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Sep 2014 17:26:47 +0000 (10:26 -0700)
commitdaedfb22451dd02b35c0549566cbb7cc06bdd53b
treef990840a7b9e6afe48ea73a5fdafe1cdc50f936d
parent02ab695bb37ee9ad515df0d0790d5977505dd04a
net: filter: split filter.h and expose eBPF to user space

allow user space to generate eBPF programs

uapi/linux/bpf.h: eBPF instruction set definition

linux/filter.h: the rest

This patch only moves macro definitions, but practically it freezes existing
eBPF instruction set, though new instructions can still be added in the future.

These eBPF definitions cannot go into uapi/linux/filter.h, since the names
may conflict with existing applications.

Full eBPF ISA description is in Documentation/networking/filter.txt

Signed-off-by: Alexei Starovoitov <ast@plumgrid.com>
Acked-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/filter.h
include/uapi/linux/Kbuild
include/uapi/linux/bpf.h [new file with mode: 0644]