bpf/flow_dissector: support flags in BPF_PROG_TEST_RUN
authorStanislav Fomichev <sdf@google.com>
Thu, 25 Jul 2019 22:52:27 +0000 (15:52 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 26 Jul 2019 01:00:41 +0000 (18:00 -0700)
commitb2ca4e1cfa7d3d755e1ec637d1235f89af9bd01f
treeb3116a2d61902a990729c92984dccb28ea5c1a39
parent1ac6b126dbe8108c1fe6e29d023a0f2989cd3fea
bpf/flow_dissector: support flags in BPF_PROG_TEST_RUN

This will allow us to write tests for those flags.

v2:
* Swap kfree(data) and kfree(user_ctx) (Song Liu)

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>
net/bpf/test_run.c