]> git.hungrycats.org Git - linux/commit
selftests/tc-testing: add tests for cls_fw and cls_flow on shared blocks
authorXiang Mei <xmei5@asu.edu>
Tue, 31 Mar 2026 05:02:17 +0000 (22:02 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 2 Apr 2026 13:08:42 +0000 (15:08 +0200)
commit70f73562d278d9f88e7095e327f2a50082a82c65
tree9a353c239e5110c3a1aec257efdbca7b6db2b262
parent1a280dd4bd1d616a01d6ffe0de284c907b555504
selftests/tc-testing: add tests for cls_fw and cls_flow on shared blocks

Regression tests for the shared-block NULL derefs fixed in the previous
two patches:

  - fw: attempt to attach an empty fw filter to a shared block and
    verify the configuration is rejected with EINVAL.
  - flow: create a flow filter on a shared block without a baseclass
    and verify the configuration is rejected with EINVAL.

Signed-off-by: Xiang Mei <xmei5@asu.edu>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Reviewed-by: Victor Nogueira <victor@mojatatu.com>
Link: https://patch.msgid.link/20260331050217.504278-3-xmei5@asu.edu
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
tools/testing/selftests/tc-testing/tc-tests/infra/filter.json