]> 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)
commit59809404785bd9810ea13f5eba8cccdc3db2773a
tree477ad1c180caa4aa2875a55de1124172d3d9ab47
parenta91bb06c349a19bf01f66ccd2e599a03072b8b28
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