]> 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)
commit6c5a87223f5807fcee05c296c57c4abf0a9244bb
treea2a6820c75c3408f1babf72505bcee57efa5f366
parentabca3460a546b335c7b613dd35ac9d64781b223c
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