OSDN Git Service

selftests: forwarding: tc_common: Convert to use busywait
authorPetr Machata <petrm@mellanox.com>
Mon, 2 Mar 2020 17:56:04 +0000 (19:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Mar 2020 01:03:52 +0000 (17:03 -0800)
commit47b0e096a938b020742b4f12afdc17aff21af6ca
treed991466b9ff9b5e0c95af2d054bb607a0f901c5b
parent844f0556546900a658b241e5aea7b8dc7cb3ff72
selftests: forwarding: tc_common: Convert to use busywait

A function busywait() was recently added based on the logic in
__tc_check_packets(). Convert the code in tc_common to use the new
function.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Reviewed-by: Amit Cohen <amitc@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/forwarding/tc_common.sh