bpf/flow_dissector: pass input flags to BPF flow dissector program
authorStanislav Fomichev <sdf@google.com>
Thu, 25 Jul 2019 22:52:25 +0000 (15:52 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 26 Jul 2019 01:00:41 +0000 (18:00 -0700)
commit086f95682114fd2d1790bd3226e76cbae9a2d192
tree9433a08f66aee74c6bfcc5e493b41d0762a5a77e
parent03cd1d1a493e92a80d60040d6aa8160aff239942
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>
include/linux/skbuff.h
include/uapi/linux/bpf.h
net/bpf/test_run.c
net/core/flow_dissector.c