OSDN Git Service

selftests: tdc_batch.py: add options needed for concurrency tests
authorVlad Buslov <vladbu@mellanox.com>
Fri, 22 Feb 2019 14:00:40 +0000 (16:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 24 Feb 2019 20:49:58 +0000 (12:49 -0800)
commit3b07270db82a617bb1be4890aaf4f80e9c1a4e8b
tree477ad1c180caa4aa2875a55de1124172d3d9ab47
parenta0dce8752193ee314c8dcff8671aa0a0cea4d377
selftests: tdc_batch.py: add options needed for concurrency tests

Extend tdc_batch.py with several optional CLI arguments that are used for
implementation of concurrency tests in following patches in this set:

- Add optional argument to specify range of filter handles used in batch
  file [fitler_handle, filter_handle+number). This is needed for testing
  filter deletion where it is necessary to know exact handles of configured
  filters.

- Add optional argument to specify filter operation type (possible values
  are ['add', 'del', 'replace']) instead of hardcoded "add" value. This
  allows generation of batches for filter addition, deletion and
  replacement.

- Add optional argument to allow user to change mac address prefix that is
  used for all filters in batch. This is necessary to allow generating
  multiple batches with unique flower classifier keys.

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