]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: export helper function flags and reject invalid ones
authorDaniel Borkmann <daniel@iogearbox.net>
Mon, 11 Jan 2016 00:16:38 +0000 (01:16 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Jan 2016 22:32:55 +0000 (17:32 -0500)
commit99c1d2d12b189cfc2d5a2d18baa78ed328d687da
tree26dcdcd139f1060baf37f933d4bbf90247004d0b
parenta01eb88ce2fbf5845467a059c66334142498de63
bpf: export helper function flags and reject invalid ones

Export flags used by eBPF helper functions through UAPI, so they can be
used by programs (instead of them redefining all flags each time or just
using the hard-coded values). It also gives a better overview what flags
are used where and we can further get rid of the extra macros defined in
filter.c. Moreover, reject invalid flags.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/bpf.h
net/core/filter.c