diff options
author | Daniel Borkmann <daniel@iogearbox.net> | 2018-01-20 01:24:37 +0100 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2018-01-19 18:37:00 -0800 |
commit | 1728a4f2ad6840746a6b1b9f01d652c5842f7e8d (patch) | |
tree | f94d94db60f1bd595fc080694f8660566eeaf28b /include/uapi/linux/hiddev.h | |
parent | 4bd95f4b99e921f51783bfddcd9738e9d3eef2b5 (diff) | |
download | linux-1728a4f2ad6840746a6b1b9f01d652c5842f7e8d.tar.gz linux-1728a4f2ad6840746a6b1b9f01d652c5842f7e8d.tar.xz |
bpf: move event_output to const_size_or_zero for xdp/skb as well
Similar rationale as in a60dd35d2e39 ("bpf: change bpf_perf_event_output
arg5 type to ARG_CONST_SIZE_OR_ZERO"), change the type to CONST_SIZE_OR_ZERO
such that we can better deal with optimized code. No changes needed in
bpf_event_output() as it can also deal with 0 size entirely (e.g. as only
wake-up signal with empty frame in perf RB, or packet dumps w/o meta data
as another such possibility).
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include/uapi/linux/hiddev.h')
0 files changed, 0 insertions, 0 deletions