OSDN Git Service

selftests: concurrency: add test to verify parallel rules insertion
authorVlad Buslov <vladbu@mellanox.com>
Fri, 22 Feb 2019 14:00:41 +0000 (16:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 24 Feb 2019 20:49:58 +0000 (12:49 -0800)
commit450ef62033c76cb654e0deaf432c1b40b57d1488
tree84bb25ade997a2a3a6ba7070af200676e99ca200
parent3b07270db82a617bb1be4890aaf4f80e9c1a4e8b
selftests: concurrency: add test to verify parallel rules insertion

Implement test that verifies parallel rules insertion by adding 1 million
flower filters with 10 concurrent tc instances. Put it to standalone
'concurrency' category.

Implement tdc_multibatch.py helper script that is used to generate multiple
batch files for concurrent tc execution. Extend config with new 'BATCH_DIR'
variable to specify temporary output directory that is used to store batch
files generated by tdc_multibatch.py.

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 [new file with mode: 0644]
tools/testing/selftests/tc-testing/tdc_config.py
tools/testing/selftests/tc-testing/tdc_multibatch.py [new file with mode: 0755]