]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5416b1643875ac9d2fadb5cbbd34a6ae28a82afa
treeb8d6bb6b3df7a6623482e5ac13e5456085de4ded
parente43c42bdcee52334371f9f35565cf53cf5ad131c
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]