Skip to content

Commit

Permalink
bpf, selftests: Add various BPF tc link selftests
Browse files Browse the repository at this point in the history
Add a big batch of selftest to extend test_progs with various tc link,
attach ops and old-style tc BPF attachments via libbpf APIs. Also test
multi-program attachments including mixing the various attach options:

  # ./test_progs -t tc_link
  #179     tc_link_base:OK
  #180     tc_link_detach:OK
  #181     tc_link_mix:OK
  #182     tc_link_opts:OK
  #183     tc_link_run_base:OK
  #184     tc_link_run_chain:OK
  Summary: 6/0 PASSED, 0 SKIPPED, 0 FAILED

All new and existing test cases pass.

Co-developed-by: Nikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: Nikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
  • Loading branch information
borkmann authored and Kernel Patches Daemon committed Oct 4, 2022
1 parent d6d4d41 commit 99118ef
Show file tree
Hide file tree
Showing 2 changed files with 799 additions and 0 deletions.
Loading

0 comments on commit 99118ef

Please sign in to comment.