]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/tc-testings: Be compatible with newer tc output
authorLi Zhijian <zhijianx.li@intel.com>
Fri, 19 Nov 2021 06:24:57 +0000 (14:24 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Nov 2021 12:36:00 +0000 (12:36 +0000)
commitcbc46ea1ca6c573631a0de593cb8ad42607d8840
tree2949fd8b7a0773b005198ed84be144988d12b282
parent457e27a7c50bac27216e3be05643f3eee7ecc16b
selftests/tc-testings: Be compatible with newer tc output

old tc(iproute2-5.9.0) output:
 action order 1: bpf action.o:[action-ok] id 60 tag bcf7977d3b93787c jited default-action pipe
newer tc(iproute2-5.14.0) output:
 action order 1: bpf action.o:[action-ok] id 64 name tag bcf7977d3b93787c jited default-action pipe

It can fix below errors:
 # ok 260 f84a - Add cBPF action with invalid bytecode
 # not ok 261 e939 - Add eBPF action with valid object-file
 #       Could not match regex pattern. Verify command output:
 # total acts 0
 #
 #       action order 1: bpf action.o:[action-ok] id 42 name  tag bcf7977d3b93787c jited default-action pipe
 #        index 667 ref 1 bind 0

Signed-off-by: Li Zhijian <zhijianx.li@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/tc-testing/tc-tests/actions/bpf.json