selftests/bpf: Check that flow dissector can be re-attached
authorJakub Sitnicki <jakub@cloudflare.com>
Fri, 11 Oct 2019 08:29:46 +0000 (10:29 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 11 Oct 2019 20:26:22 +0000 (22:26 +0200)
commitf97eea1756f383fefc147f4c76c54942944a3d95
treeb8d6bb6b3df7a6623482e5ac13e5456085de4ded
parent719b78a5674f15fef2e4a56484614657fd759978
selftests/bpf: Check that flow dissector can be re-attached

Make sure a new flow dissector program can be attached to replace the old
one with a single syscall. Also check that attaching the same program twice
is prohibited.

Signed-off-by: Jakub Sitnicki <jakub@cloudflare.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Stanislav Fomichev <sdf@google.com>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20191011082946.22695-3-jakub@cloudflare.com
tools/testing/selftests/bpf/prog_tests/flow_dissector_reattach.c [new file with mode: 0644]