]> www.infradead.org Git - users/hch/xfs.git/commit
selftests/bpf: Extend tcx tests to cover late tcx_entry release
authorDaniel Borkmann <daniel@iogearbox.net>
Mon, 8 Jul 2024 13:31:30 +0000 (15:31 +0200)
committerMartin KaFai Lau <martin.lau@kernel.org>
Mon, 8 Jul 2024 21:07:31 +0000 (14:07 -0700)
commit5f1d18de79180deac2822c93e431bbe547f7d3ce
treef01ffebd1413bd82a5ea2014360dbc40304f9aab
parent1cb6f0bae50441f4b4b32a28315853b279c7404e
selftests/bpf: Extend tcx tests to cover late tcx_entry release

Add a test case which replaces an active ingress qdisc while keeping the
miniq in-tact during the transition period to the new clsact qdisc.

  # ./vmtest.sh -- ./test_progs -t tc_link
  [...]
  ./test_progs -t tc_link
  [    3.412871] bpf_testmod: loading out-of-tree module taints kernel.
  [    3.413343] bpf_testmod: module verification failed: signature and/or required key missing - tainting kernel
  #332     tc_links_after:OK
  #333     tc_links_append:OK
  #334     tc_links_basic:OK
  #335     tc_links_before:OK
  #336     tc_links_chain_classic:OK
  #337     tc_links_chain_mixed:OK
  #338     tc_links_dev_chain0:OK
  #339     tc_links_dev_cleanup:OK
  #340     tc_links_dev_mixed:OK
  #341     tc_links_ingress:OK
  #342     tc_links_invalid:OK
  #343     tc_links_prepend:OK
  #344     tc_links_replace:OK
  #345     tc_links_revision:OK
  Summary: 14/0 PASSED, 0 SKIPPED, 0 FAILED

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Cc: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://lore.kernel.org/r/20240708133130.11609-2-daniel@iogearbox.net
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
tools/testing/selftests/bpf/config
tools/testing/selftests/bpf/prog_tests/tc_links.c