]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd81d5674c020c770b2e9226a8c8b243eae78dc5f
treef990840a7b9e6afe48ea73a5fdafe1cdc50f936d
parent8762af10005d95d028724796293d1e6c106f6219
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]