]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf58e17b89017fde66ffeb3a9fa0b7ba1df111817
tree477ad1c180caa4aa2875a55de1124172d3d9ab47
parentfc292a079e7d80d50b1ec483911e7335a77ba943
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