]> git.baikalelectronics.ru Git - kernel.git/commit
tc-testing: skbmod: fix match value of ethertype
authorDavide Caratti <dcaratti@redhat.com>
Fri, 2 Mar 2018 13:44:39 +0000 (14:44 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 Mar 2018 23:39:03 +0000 (18:39 -0500)
commit63cdf2f93187c9d2a90a90b46df5dbb4f4b96628
tree7a30f076001e98370f26b173e4386a56394a89e4
parent69e57372c479786a48d436ccd1d9199bad30c157
tc-testing: skbmod: fix match value of ethertype

iproute2 print_skbmod() prints the configured ethertype using format 0x%X:
therefore, test 9aa8 systematically fails, because it configures action #4
using ethertype 0x0031, and expects 0x0031 when it reads it back. Changing
the expected value to 0x31 lets the test result 'not ok' become 'ok'.

tested with:
 # ./tdc.py -e 9aa8
 Test 9aa8: Get a single skbmod action from a list
 All test results:

 1..1
 ok 1 9aa8 Get a single skbmod action from a list

Fixes: 96bdbaa51d56 ("tc-testing: Add test cases for police and skbmod")
Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/tc-testing/tc-tests/actions/skbmod.json