diff options
author | Stanislav Fomichev <sdf@google.com> | 2019-07-26 00:52:25 +0200 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2019-07-26 03:00:41 +0200 |
commit | 086f95682114fd2d1790bd3226e76cbae9a2d192 (patch) | |
tree | 9433a08f66aee74c6bfcc5e493b41d0762a5a77e /net/bpf/test_run.c | |
parent | selftests/bpf: Add selftests for bpf_perf_event_output (diff) | |
download | linux-086f95682114fd2d1790bd3226e76cbae9a2d192.tar.xz linux-086f95682114fd2d1790bd3226e76cbae9a2d192.zip |
bpf/flow_dissector: pass input flags to BPF flow dissector program
C flow dissector supports input flags that tell it to customize parsing
by either stopping early or trying to parse as deep as possible. Pass
those flags to the BPF flow dissector so it can make the same
decisions. In the next commits I'll add support for those flags to
our reference bpf_flow.c
v3:
* Export copy of flow dissector flags instead of moving (Alexei Starovoitov)
Acked-by: Petar Penkov <ppenkov@google.com>
Acked-by: Willem de Bruijn <willemb@google.com>
Acked-by: Song Liu <songliubraving@fb.com>
Cc: Song Liu <songliubraving@fb.com>
Cc: Willem de Bruijn <willemb@google.com>
Cc: Petar Penkov <ppenkov@google.com>
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'net/bpf/test_run.c')
-rw-r--r-- | net/bpf/test_run.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bpf/test_run.c b/net/bpf/test_run.c index 80e6f3a6864d..4e41d15a1098 100644 --- a/net/bpf/test_run.c +++ b/net/bpf/test_run.c @@ -419,7 +419,7 @@ int bpf_prog_test_run_flow_dissector(struct bpf_prog *prog, time_start = ktime_get_ns(); for (i = 0; i < repeat; i++) { retval = bpf_flow_dissect(prog, &ctx, eth->h_proto, ETH_HLEN, - size); + size, 0); if (signal_pending(current)) { preempt_enable(); |