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)
commitac2944abe4d7732f29a79f063c9cae7df2a3e3cc
tree2949fd8b7a0773b005198ed84be144988d12b282
parentbdf1565fe03d29777d24e239163d0d53e4af9ce0
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