]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
bpf: add BPF_PROG_TEST_RUN support for flow dissector
authorStanislav Fomichev <sdf@google.com>
Mon, 28 Jan 2019 16:53:54 +0000 (08:53 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 29 Jan 2019 00:08:29 +0000 (01:08 +0100)
commitb7a1848e8398b8396c990279e6a10272d818577e
tree1e7c535a6ab23d1e4e1f2d4a1a145a8fb6603da9
parentc8aa703822bf811269975cf7251b5eaad4c38e9c
bpf: add BPF_PROG_TEST_RUN support for flow dissector

The input is packet data, the output is struct bpf_flow_key. This should
make it easy to test flow dissector programs without elaborate
setup.

Signed-off-by: Stanislav Fomichev <sdf@google.com>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
include/linux/bpf.h
net/bpf/test_run.c
net/core/filter.c