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)
commitbe6b294dbd22c9dffc28a30f3ff1d4994c04f87d
treea2a6820c75c3408f1babf72505bcee57efa5f366
parenta788b302c5336586f6bf36fcc353dfe7c4081b74
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