]> asedeno.scripts.mit.edu Git - linux.git/commit
selftests: forwarding: Move lldpad waiting to lib.sh
authorPetr Machata <petrm@mellanox.com>
Tue, 31 Jul 2018 22:38:59 +0000 (00:38 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Aug 2018 16:52:30 +0000 (09:52 -0700)
commit989133bf7ff3fe6ebcb9c1e7b5e13bebac175d35
tree1b7dd08ee36f91fe41571e7776596b1a55b09f9e
parent6495342365e859400023c09063c2b31a12d68261
selftests: forwarding: Move lldpad waiting to lib.sh

The function lldpad_wait() will be useful for a test added by a
following patch. Likewise would the "sleep 5" with its extensive
comment.

Therefore move lldpad_wait() to lib.sh in order to allow reuse. Rename
it to lldpad_app_wait_set() to recognize that what this is intended to
wait on are the pending APP sets.

For the sleeping, add a function lldpad_app_wait_del(). That will serve
to hold the related explanatory comment (which edit for clarity), and as
a token in the caller to identify the sites where this sort of waiting
takes place. That will serve when/if a better way to handle this
business is found.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/drivers/net/mlxsw/qos_dscp_bridge.sh
tools/testing/selftests/net/forwarding/lib.sh