]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Extend test_flow_dissector to cover link creation
authorJakub Sitnicki <jakub@cloudflare.com>
Sun, 31 May 2020 08:28:46 +0000 (10:28 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 1 Jun 2020 22:21:03 +0000 (15:21 -0700)
commit5f8a1d8a527ce5f53c01cac69ad8cf49bee108f8
tree1edf7a1b44dac5062702fea067e9d9e94cf02c3e
parent6125b8bb7e2ee9fcd69b6a69dba1f18d7ff35b66
selftests/bpf: Extend test_flow_dissector to cover link creation

Extend the existing flow_dissector test case to run tests once using direct
prog attachments, and then for the second time using indirect attachment
via link.

The intention is to exercises the newly added high-level API for attaching
programs to network namespace with links (bpf_program__attach_netns).

Signed-off-by: Jakub Sitnicki <jakub@cloudflare.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200531082846.2117903-13-jakub@cloudflare.com
tools/testing/selftests/bpf/prog_tests/flow_dissector.c