]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: concurrency: add test to verify concurrent delete
authorVlad Buslov <vladbu@mellanox.com>
Fri, 22 Feb 2019 14:00:45 +0000 (16:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 24 Feb 2019 20:49:59 +0000 (12:49 -0800)
commit64c1abcfbaa9478c24a3eac340c026eb2266b9f2
treef548262589f0f6dadec084801fd3fa60cde2b4d9
parent1dc64eaae763360b00ab7cdcb71287a786809d74
selftests: concurrency: add test to verify concurrent delete

Implement test that verifies concurrent deletion of rules by executing 10
tc instances that delete flower filters in same handle range. In this case
only one tc instance succeeds in deleting a filter with particular handle.
To mitigate expected failures of all other instances, run tc with 'force'
option to continue processing batch file in case of errors and expect xargs
to return code '123' that indicates that invocation of command(s) exited
with error in range 1-125.

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