tc-testing: fix tdc tests for 'bpf' action
authorDavide Caratti <dcaratti@redhat.com>
Wed, 9 May 2018 16:45:42 +0000 (18:45 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 May 2018 21:28:02 +0000 (17:28 -0400)
commitf7017cafcdd7574680fc7faabcb73f91172a14ab
tree5211ffed82e77bc8406edcab2808d61c72881393
parent6ad4e91c6d796b38a7f0e724db1de28eeb122bad
tc-testing: fix tdc tests for 'bpf' action

- correct a typo in the value of 'matchPattern' of test 282d, potentially
 causing false negative
- allow errors when 'teardown' executes '$TC action flush action bpf' in
 test 282d, to fix false positive when it is run with act_bpf unloaded
- correct the value of 'matchPattern' in test e939, causing false positive
 in case the BPF JIT is enabled

Fixes: 440ea4ae1828 ("tc-testing: add selftests for 'bpf' action")
Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Acked-by: Lucas Bates <lucasb@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/tc-testing/tc-tests/actions/bpf.json