• Daniel Borkmann's avatar
    selftests/bpf: Add various more tcx test cases · ccd9a8be
    Daniel Borkmann authored
    Add several new tcx test cases to improve test coverage. This also includes
    a few new tests with ingress instead of clsact qdisc, to cover the fix from
    commit dc644b54 ("tcx: Fix splat in ingress_destroy upon tcx_entry_free").
    
      # ./test_progs -t tc
      [...]
      #234     tc_links_after:OK
      #235     tc_links_append:OK
      #236     tc_links_basic:OK
      #237     tc_links_before:OK
      #238     tc_links_chain_classic:OK
      #239     tc_links_chain_mixed:OK
      #240     tc_links_dev_cleanup:OK
      #241     tc_links_dev_mixed:OK
      #242     tc_links_ingress:OK
      #243     tc_links_invalid:OK
      #244     tc_links_prepend:OK
      #245     tc_links_replace:OK
      #246     tc_links_revision:OK
      #247     tc_opts_after:OK
      #248     tc_opts_append:OK
      #249     tc_opts_basic:OK
      #250     tc_opts_before:OK
      #251     tc_opts_chain_classic:OK
      #252     tc_opts_chain_mixed:OK
      #253     tc_opts_delete_empty:OK
      #254     tc_opts_demixed:OK
      #255     tc_opts_detach:OK
      #256     tc_opts_detach_after:OK
      #257     tc_opts_detach_before:OK
      #258     tc_opts_dev_cleanup:OK
      #259     tc_opts_invalid:OK
      #260     tc_opts_mixed:OK
      #261     tc_opts_prepend:OK
      #262     tc_opts_replace:OK
      #263     tc_opts_revision:OK
      [...]
      Summary: 44/38 PASSED, 0 SKIPPED, 0 FAILED
    Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
    Link: https://lore.kernel.org/r/8699efc284b75ccdc51ddf7062fa2370330dc6c0.1692029283.git.daniel@iogearbox.netSigned-off-by: default avatarMartin KaFai Lau <martin.lau@kernel.org>
    ccd9a8be
test_tc_link.c 810 Bytes