]> 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)
commit741ce7ef3a226f388c950d6716f9490c8543abab
tree2949fd8b7a0773b005198ed84be144988d12b282
parent9f36c35df91e2ea745a82479d58ca1ac5beb7f2b
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