]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commitc15952dc18d8a293d976ac6c06d44d9d98023b45
treed45efd559f784aeb11c85bd8fcbef8808e7d61b5
parent91c4467e3c76b6d40ecc29ed71d3aa1e0285ab80
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