]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: concurrency: add test to verify parallel add/delete
authorVlad Buslov <vladbu@mellanox.com>
Fri, 22 Feb 2019 14:00:46 +0000 (16:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 24 Feb 2019 20:49:59 +0000 (12:49 -0800)
commit3180eb6fd8737ae1fe7048a7a56fa0afe32032ba
treea2a6820c75c3408f1babf72505bcee57efa5f366
parent64c1abcfbaa9478c24a3eac340c026eb2266b9f2
selftests: concurrency: add test to verify parallel add/delete

Implement test that runs 5 instances of tc add filter in parallel with 5
instances of tc del filter from same tp instance. Each instance uses its
own filter handle and key range.

Extend tdc_multibatch.py with additional options required to implement the
test: common prefix for all generated batch files, first value of filter
handle range, MAC address prefix modifier. These are necessary to allow
creating batch files with unique keys and handle ranges with multiple
invocation of tdc_multibatch.py helper script.

Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/tc-testing/tc-tests/filters/concurrency.json
tools/testing/selftests/tc-testing/tdc_multibatch.py