diff options
author | Alexei Starovoitov <ast@plumgrid.com> | 2014-10-14 02:08:54 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-10-14 16:06:45 -0400 |
commit | c15952dc18d8a293d976ac6c06d44d9d98023b45 (patch) | |
tree | d45efd559f784aeb11c85bd8fcbef8808e7d61b5 /include/uapi/linux/bpf.h | |
parent | 91c4467e3c76b6d40ecc29ed71d3aa1e0285ab80 (diff) |
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>
Diffstat (limited to 'include/uapi/linux/bpf.h')
-rw-r--r-- | include/uapi/linux/bpf.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h index 31b0ac208a52..d18316f9e9c4 100644 --- a/include/uapi/linux/bpf.h +++ b/include/uapi/linux/bpf.h @@ -8,6 +8,7 @@ #define _UAPI__LINUX_BPF_H__ #include <linux/types.h> +#include <linux/bpf_common.h> /* Extended instruction set based on top of classic BPF */ |