]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests: tc: Add generic erspan_opts matching support for tc-flower
authorLi Shuang <shuali@redhat.com>
Fri, 18 Jul 2025 14:16:12 +0000 (22:16 +0800)
committerJakub Kicinski <kuba@kernel.org>
Mon, 21 Jul 2025 23:12:09 +0000 (16:12 -0700)
commitff3fbcdd472453190d4f37fe1d1e69e50cce7612
tree1beb042aed301bcbd2546efba117733c064c0f4c
parentdd500e4aecf25e48e874ca7628697969df679493
selftests: tc: Add generic erspan_opts matching support for tc-flower

Add test cases to tc_flower.sh to validate generic matching on ERSPAN
options. Both ERSPAN Type II and Type III are covered.

Also add check_tc_erspan_support() to verify whether tc supports
erspan_opts.

Signed-off-by: Li Shuang <shuali@redhat.com>
Reviewed-by: Xin Long <lucien.xin@gmail.com>
Link: https://patch.msgid.link/1f354a1afd60f29bbbf02bd60cb52ecfc0b6bd17.1752848172.git.shuali@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/forwarding/lib.sh
tools/testing/selftests/net/forwarding/tc_flower.sh