]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commita788b302c5336586f6bf36fcc353dfe7c4081b74
treef548262589f0f6dadec084801fd3fa60cde2b4d9
parent424c5bd46ad3da8d69f302375bbda69d4a7107bc
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