]> git.baikalelectronics.ru Git - kernel.git/commit
net: filter: move common defines into bpf_common.h
authorAlexei Starovoitov <ast@plumgrid.com>
Tue, 14 Oct 2014 09:08:54 +0000 (02:08 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Oct 2014 20:06:45 +0000 (16:06 -0400)
commit20b0349ee6b84805264090310f396c9e2bb5195d
treed45efd559f784aeb11c85bd8fcbef8808e7d61b5
parent0401df4505a04f8c50b6dceff853f424d5f60e9a
net: filter: move common defines into bpf_common.h

userspace programs that use eBPF instruction macros need to include two files:
uapi/linux/filter.h and uapi/linux/bpf.h
Move common macro definitions that are shared between classic BPF and eBPF
into uapi/linux/bpf_common.h, so that user app can include only one bpf.h file

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