linux_dsm_epyc7002/tools/testing/selftests/tc-testing/tc-tests/actions
Davide Caratti 91fa038d94 selftests: tc-testing: fix parsing of ife type
In iproute2 commit 90c5c969f0b9 ("fix print_0xhex on 32 bit"), the format
specifier for the ife type changed from 0x%X to %#llX, causing systematic
failures in the following TDC test cases:

 7682 - Create valid ife encode action with mark and pass control
 ef47 - Create valid ife encode action with mark and pipe control
 df43 - Create valid ife encode action with mark and continue control
 e4cf - Create valid ife encode action with mark and drop control
 ccba - Create valid ife encode action with mark and reclassify control
 a1cf - Create valid ife encode action with mark and jump control
 cb3d - Create valid ife encode action with mark value at 32-bit maximum
 95ed - Create valid ife encode action with prio and pass control
 aa17 - Create valid ife encode action with prio and pipe control
 74c7 - Create valid ife encode action with prio and continue control
 7a97 - Create valid ife encode action with prio and drop control
 f66b - Create valid ife encode action with prio and reclassify control
 3056 - Create valid ife encode action with prio and jump control
 7dd3 - Create valid ife encode action with prio value at 32-bit maximum
 05bb - Create valid ife encode action with tcindex and pass control
 ce65 - Create valid ife encode action with tcindex and pipe control
 09cd - Create valid ife encode action with tcindex and continue control
 8eb5 - Create valid ife encode action with tcindex and continue control
 451a - Create valid ife encode action with tcindex and drop control
 d76c - Create valid ife encode action with tcindex and reclassify control
 e731 - Create valid ife encode action with tcindex and jump control
 b7b8 - Create valid ife encode action with tcindex value at 16-bit maximum
 2a9c - Create valid ife encode action with mac src parameter
 cf5c - Create valid ife encode action with mac dst parameter
 2353 - Create valid ife encode action with mac src and mac dst parameters
 552c - Create valid ife encode action with mark and type parameters
 0421 - Create valid ife encode action with prio and type parameters
 4017 - Create valid ife encode action with tcindex and type parameters
 fac3 - Create valid ife encode action with index at 32-bit maximnum
 7c25 - Create valid ife decode action with pass control
 dccb - Create valid ife decode action with pipe control
 7bb9 - Create valid ife decode action with continue control
 d9ad - Create valid ife decode action with drop control
 219f - Create valid ife decode action with reclassify control
 8f44 - Create valid ife decode action with jump control
 b330 - Create ife encode action with cookie

Change 'matchPattern' values, allowing '0' and '0x0' if ife type is equal
to 0, and accepting both '0x' and '0X' otherwise, to let these tests pass
both with old and new tc binaries.
While at it, fix a small typo in test case fac3 ('maximnum'->'maximum').

Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-01-16 14:05:42 -08:00
..
bpf.json tc-testing: use a plugin to build eBPF program 2018-10-05 14:44:56 -07:00
connmark.json tc-testing: remove duplicate spaces in connmark match patterns 2018-08-05 17:39:23 -07:00
csum.json tc-tests: add an extreme-case csum action test 2018-06-28 14:23:57 +09:00
gact.json tc-tests: test denial of 'goto chain' on 'random' traffic in gact.json 2018-10-22 19:42:50 -07:00
ife.json selftests: tc-testing: fix parsing of ife type 2019-01-16 14:05:42 -08:00
mirred.json tc-testing: flush gact actions on test teardown 2018-08-05 17:39:23 -07:00
nat.json tc-tests: initial version of nat action unit tests 2018-08-07 15:55:38 -07:00
police.json tc-tests: test denial of 'goto chain' for exceed traffic in police.json 2018-10-22 19:42:50 -07:00
sample.json tc-testing: add sample action tests 2018-04-16 18:17:07 -04:00
simple.json tc-testing: Split test case files into smaller chunks 2017-10-14 18:47:53 -07:00
skbedit.json tc-testing: remove duplicate spaces in skbedit match patterns 2018-08-05 17:39:24 -07:00
skbmod.json tc-testing: updated police, mirred, skbedit and skbmod with more tests 2018-03-25 20:41:46 -04:00
tunnel_key.json selftests: tc-testing: fix tunnel_key failure if dst_port is unspecified 2019-01-15 21:58:17 -08:00
vlan.json tc-testing: updated mirred and vlan with more tests 2018-05-16 14:03:15 -04:00