• Davide Caratti's avatar
    selftests: tc-testing: fix parsing of ife type · 923ea572
    Davide Caratti authored
    [ Upstream commit 91fa038d ]
    
    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: 's avatarDavide Caratti <dcaratti@redhat.com>
    Acked-by: Stephen Hemminger's avatarStephen Hemminger <stephen@networkplumber.org>
    Signed-off-by: 's avatarDavid S. Miller <davem@davemloft.net>
    Signed-off-by: 's avatarSasha Levin <sashal@kernel.org>
    923ea572
Name
Last commit
Last update
..
accounting Loading commit data...
arch Loading commit data...
bpf Loading commit data...
build Loading commit data...
cgroup Loading commit data...
crypto Loading commit data...
firewire Loading commit data...
gpio Loading commit data...
hv Loading commit data...
iio Loading commit data...
include Loading commit data...
kvm/kvm_stat Loading commit data...
laptop Loading commit data...
leds Loading commit data...
lib Loading commit data...
memory-model Loading commit data...
nfsd Loading commit data...
objtool Loading commit data...
pci Loading commit data...
pcmcia Loading commit data...
perf Loading commit data...
power Loading commit data...
scripts Loading commit data...
spi Loading commit data...
testing Loading commit data...
thermal/tmon Loading commit data...
time Loading commit data...
usb Loading commit data...
virtio Loading commit data...
vm Loading commit data...
wmi Loading commit data...
Makefile Loading commit data...