]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Add tests for attaching bpf_link to netns
authorJakub Sitnicki <jakub@cloudflare.com>
Sun, 31 May 2020 08:28:43 +0000 (10:28 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 1 Jun 2020 22:21:03 +0000 (15:21 -0700)
commit1d1d72041d4abb4fc674d3960b7cfbb22ae6f61a
tree091e3779fd034a281e3d9bd275f229bfc8b9eb0a
parenta4b59d316fdbd91fb633be07ea5f3072da67709a
selftests/bpf: Add tests for attaching bpf_link to netns

Extend the existing test case for flow dissector attaching to cover:

 - link creation,
 - link updates,
 - link info querying,
 - mixing links with direct prog attachment.

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